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

[WIP] feat: Add support for Component Identity Evidence #657

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cyclonedx/exception/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ class InvalidNistQuantumSecurityLevelException(CycloneDxModelException):
pass


class InvalidComponentIdentityEvidenceConfidenceScore(CycloneDxModelException):
"""
Raised when an invalid value is provided for a confidence score for Component Evidence.
"""
pass


class InvalidComponentIdentityEvidenceMethodConfidenceScore(CycloneDxModelException):
"""
Raised when an invalid value is provided for a confidence score for Component Evidence Method.
"""
pass


class InvalidOmniBorIdException(CycloneDxModelException):
"""
Raised when a supplied value for an OmniBOR ID does not meet the format requirements
Expand Down
9 changes: 9 additions & 0 deletions cyclonedx/exception/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ class SerializationOfUnsupportedComponentTypeException(CycloneDxSerializationExc
"""


class SerializationOfUnsupportedComponentIdentityEvidenceFieldException(CycloneDxSerializationException):
"""
Raised when attempting serializing/normalizing a :py:class:`cyclonedx.model.component.Component`
to a :py:class:`cyclonedx.schema.schema.BaseSchemaVersion`
which does not support that :py:class:`cyclonedx.model.component.ComponentIdentityEvidenceField`
.
"""


class SerializationOfUnexpectedValueException(CycloneDxSerializationException, ValueError):
"""
Raised when attempting serializing/normalizing a type that is not expected there.
Expand Down
Loading
Loading