Skip to content

Conversation

@jkowalleck
Copy link
Member

@jkowalleck jkowalleck commented Apr 6, 2022

Hello @stevespringett ,

looks like there is a bug in the strict schema files: the optional bom.$schema property was not updated, when the actual schema $id revision was bumped.

to mitigate this for now and the future, i propose to lax the definition - from a specific string to any string.
This means: no need to modify the schema version on multiple places, when bumping.

"$schema": {
"type": "string",
"enum": [
"http://cyclonedx.org/schema/bom-1.2a.schema.json"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was in conflict with the own $id

"$schema": {
"type": "string",
"enum": [
"http://cyclonedx.org/schema/bom-1.3.schema.json"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was in conflict with the own $id

@stevespringett
Copy link
Member

Will need to take a vote. Another possibility would be to leave the enum in place and have a unit test that checks.

@jkowalleck jkowalleck force-pushed the fix/json--strict_property_schema branch from c6e44a0 to 1684976 Compare July 5, 2023 22:16
@jkowalleck
Copy link
Member Author

updated for CDX 1.5

@jkowalleck jkowalleck requested review from a team and stevespringett July 5, 2023 22:18
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck force-pushed the fix/json--strict_property_schema branch from 1684976 to f3631ee Compare October 15, 2023 10:51
@jkowalleck
Copy link
Member Author

obsoleted by #402

@jkowalleck jkowalleck closed this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants