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

Error: Unexpected key lifecycles/lifecycles in data being serialized to cyclonedx.model.bom.BomMetaData #632

Closed
behnazh-w opened this issue Jun 14, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@behnazh-w
Copy link

I am trying to deserialize the SBOM generated for pkg:maven/org.apache.maven/[email protected]. I'm getting a ValueError as shown below:

>>> from cyclonedx.model.bom import Bom
>>> import json
>>> f = open("/tmp/sbom.json")
>>> data = f.read()
>>> Bom.from_json(json.loads(data))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".venv/lib/python3.11/site-packages/serializable/__init__.py", line 333, in from_json
    _data[k] = prop_info.concrete_type.from_json(data=v)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/serializable/__init__.py", line 301, in from_json
    raise ValueError(
ValueError: Unexpected key lifecycles/lifecycles in data being serialized to cyclonedx.model.bom.BomMetaData

I am using [email protected].

@jkowalleck
Copy link
Member

acknowledged.
this is due to the missing data models for that purpose. see #578


CycloneDX python library is maintained by volunteers, and drive by members of the Community.
Feel free to contribute the bits and peaces you or your organization needs.
If you plan on doing so, please let us know in a respective github issue or in our slack channel (invite)

@jkowalleck jkowalleck closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
@jkowalleck jkowalleck added the duplicate This issue or pull request already exists label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants