Skip to content

Deprecation warnings are shown for wrong version #944

Description

@stefan6419846

I am loading the CycloneDX JSON files from projects like nh3 (distributed in the wheel): https://pypi.org/project/nh3/0.3.3/ These claim to be compliant with version 1.5 of the CycloneDX specification.

Nevertheless, loading the JSON files with this Python library throws a deprecation warning:

lib/python3.11/site-packages/cyclonedx/model/component.py:1188: DeprecationWarning: @.author is deprecated from CycloneDX v1.6 onwards. Please use @.authors or @.manufacturer instead.

This does not look correct as CycloneDX 1.6 is irrelevant for CycloneDX 1.5 files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions