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
{{ message }}
Repository navigation
Show comments of JSON Schema in Documentation #336
What you are referring to is a comment by me, the author. This is nothing relevant for documentation, so I thought at the time I wrote it.
The fact that the "value SHOULD not start with the BOM-Link intro 'urn:cdx:'" was stated, because it was a note for readers of the schema, in case they needed it for deeper understanding of the background of the change i made via 626dbbc
It was a comment for the future times when CycloneDX 2.0 would be written, when breaking changes would be allowed - when we would add regex-constraints to that element.
A comment like "value SHOULD not start with the BOM-Link intro 'urn:cdx:'" is directed to the users, thus it would probably be better suited in the description.
please do 👍
If this note is moved into the description, the $comment would simply be something like "TODO (breaking change): add a format constraint, that prevents the value from staring with urn:cdx:'" or something like this.
Activity
andreas-hilti commentedon Nov 12, 2023
This is similar in spirit to #273.
jkowalleck commentedon Nov 12, 2023
Current JSON docs generator in insufficient to do so, according to coveooss/json-schema-for-humans#198
jkowalleck commentedon Nov 12, 2023
What you are referring to is a comment by me, the author. This is nothing relevant for documentation, so I thought at the time I wrote it.
The fact that the "value SHOULD not start with the BOM-Link intro 'urn:cdx:'" was stated, because it was a note for readers of the schema, in case they needed it for deeper understanding of the background of the change i made via 626dbbc
It was a comment for the future times when CycloneDX 2.0 would be written, when breaking changes would be allowed - when we would add regex-constraints to that element.
It is a mere comment, like
specification/schema/bom-1.5.schema.json
Line 139 in 299209a
If you feel this comment has more value, I'd suggest you pullrequest a change and put this
$commentinto thedescription.andreas-hilti commentedon Nov 15, 2023
Thanks, @jkowalleck. In my opinion, there are two aspects:
Nevertheless, I would see some value if $comments were available, as it is also about maintaining the json schema. But let's see what comes out of Add an option to show $comments in generated docs coveooss/json-schema-for-humans#198
I can open a PR.
jkowalleck commentedon Nov 15, 2023
please do 👍
If this note is moved into the
description, the$commentwould simply be something like "TODO (breaking change): add aformatconstraint, that prevents the value from staring withurn:cdx:'" or something like this.Move comment to description (#344)
jkowalleck commentedon Jan 16, 2024
all work done. enhancement was merged to 1.6
[WIP] v1.6 (#323)
Move comment to description (#344)
[WIP] v1.6 (#323)
Move comment to description (CycloneDX#344)
[WIP] v1.6 (CycloneDX#323)