You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "An optional identifier which can be used to reference the workflow elsewhere in the BOM. Every bom-ref must be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",
"description": "An optional identifier which can be used to reference the workspace elsewhere in the BOM. Every bom-ref must be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",
I think in 1.7 we can think of externalizing the help texts and referring to them with short codes. That way the description will be consistent and could be internationalized. Whether an attribute is required or not could be determined entirely from the required array.
"description": "An optional identifier which can be used to reference the task elsewhere in the BOM. Every bom-ref must be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",
"description": "An optional identifier which can be used to reference the trigger elsewhere in the BOM. Every bom-ref must be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",
I have uploaded the cyclonedx json schema. I am looking for mistakes in the description text where the word "optional" is used while the attribute is part of the required array. Couple of examples: `workflow.bom-ref` attribute has the description beginning with "An optional identifier", while bom-ref is part of the required array
json
"required": [
"bom-ref",
"uid",
"taskTypes"
]
Similar mistake could also be found for `workspace.bom-ref`. Can you review the attached file and find other attributes with similar issues in description text?
Activity
jkowalleck commentedon Mar 28, 2025
is removing the word "optional" not enough? is it really required in the help test, @stevespringett ?
stevespringett commentedon Mar 28, 2025
Lets just remove the word optional in this case.
prabhu commentedon Mar 29, 2025
More instance (found with cdxgenGPT!):
specification/schema/bom-1.6.schema.json
Line 4039 in d570ffb
specification/schema/bom-1.6.schema.json
Line 4363 in d570ffb
[-]bom-ref help text needs tweaking[/-][+]bom-ref help text needs tweaking ❗ [/+]jkowalleck commentedon Jun 12, 2025
#649 is probably a duplicate if this very ticket.
jkowalleck commentedon Sep 3, 2025
will start working on a fix
fix: remove the word "optional", align some docs (#680)
jkowalleck commentedon Sep 7, 2025
done via #680
v1.7 (#511)
fix: remove the word "optional", align some docs (#680)
v1.7 (#511)
fix: remove the word "optional", align some docs (CycloneDX#680)
v1.7 (CycloneDX#511)