Skip to content

[BUG] validate JSON for 1.3 #612

@jkowalleck

Description

@jkowalleck

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions