-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix json-schema-file strict schema property #138
fix json-schema-file strict schema property #138
Conversation
@@ -12,10 +12,7 @@ | |||
"additionalProperties": false, | |||
"properties": { | |||
"$schema": { | |||
"type": "string", | |||
"enum": [ | |||
"http://cyclonedx.org/schema/bom-1.2a.schema.json" |
There was a problem hiding this comment.
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
@@ -12,10 +12,7 @@ | |||
"additionalProperties": false, | |||
"properties": { | |||
"$schema": { | |||
"type": "string", | |||
"enum": [ | |||
"http://cyclonedx.org/schema/bom-1.3.schema.json" |
There was a problem hiding this comment.
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
Will need to take a vote. Another possibility would be to leave the enum in place and have a unit test that checks. |
c6e44a0
to
1684976
Compare
updated for CDX 1.5 |
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1684976
to
f3631ee
Compare
obsoleted by #402 |
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.