Skip to content
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

[BUG] validate JSON for 1.3 #1059

Closed
jkowalleck opened this issue May 6, 2024 · 0 comments · Fixed by #1060
Closed

[BUG] validate JSON for 1.3 #1059

jkowalleck opened this issue May 6, 2024 · 0 comments · Fixed by #1060
Assignees
Labels
bug Something isn't working

Comments

@jkowalleck
Copy link
Member

jkowalleck commented May 6, 2024

validation of

{
  "$schema": "http://cyclonedx.org/schema/bom-1.3.schema.json",
  "bomFormat": "CycloneDX",
  "specVersion": "1.3",
...
}

fails with unexpected validation error

+ [
+   {
+     instancePath: '/$schema',
+     keyword: 'enum',
+     message: 'must be equal to one of the allowed values',
+     params: {
+       allowedValues: [
+         'http://cyclonedx.org/schema/bom-1.3.schema.json'
+       ]
+     },
+     schemaPath: '#/properties/%24schema/enum'
+   }
+ ]
@jkowalleck jkowalleck added the bug Something isn't working label May 6, 2024
@jkowalleck jkowalleck self-assigned this May 6, 2024
@jkowalleck jkowalleck changed the title [BUG] validate JSON for 1.2 [BUG] validate JSON for 1.3 May 6, 2024
jkowalleck added a commit that referenced this issue May 6, 2024
fixes
#1059

---------

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant