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 #612

Closed
jkowalleck opened this issue May 6, 2024 · 1 comment · Fixed by #613
Closed

[BUG] validate JSON for 1.3 #612

jkowalleck opened this issue May 6, 2024 · 1 comment · Fixed by #613
Assignees
Labels
bug Something isn't working

Comments

@jkowalleck
Copy link
Member

validation of

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

fails with unexpected

Failure
Traceback (most recent call last):
  File ".../cyclonedx-python-lib/.venv/lib/python3.11/site-packages/ddt.py", line 221, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../cyclonedx-python-lib/tests/test_validation_json.py", line 112, in test_validate_no_none
    self.assertIsNone(validation_error)
AssertionError: <ValidationError: "'http://cyclonedx.org/schema/bom-1.3.schema.json' is not one of ['http://cyclonedx.org/schema/bom-1.3a.schema.json']"> is not None

@jkowalleck jkowalleck added the bug Something isn't working label May 6, 2024
@jkowalleck jkowalleck self-assigned this May 6, 2024
@jkowalleck
Copy link
Member Author

jkowalleck commented May 6, 2024

jkowalleck added a commit that referenced this issue May 6, 2024
fixes #612

---------

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