4444 SchemaVersion1Dot5 ,
4545 SchemaVersion1Dot6 ,
4646)
47- from ..serialization import BomRefHelper , LicenseRepositoryHelper , PackageUrl as PackageUrlSH
47+ from ..serialization import PackageUrl as PackageUrlSH
4848from . import (
4949 AttachedText ,
5050 Copyright ,
6161from .crypto import CryptoProperties
6262from .dependency import Dependable
6363from .issue import IssueType
64- from .license import License , LicenseRepository
64+ from .license import License , LicenseRepository , _LicenseRepositorySerializationHelper
6565from .release_note import ReleaseNotes
6666
6767
@@ -71,7 +71,7 @@ class Commit:
7171 Our internal representation of the `commitType` complex type.
7272
7373 .. note::
74- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_commitType
74+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_commitType
7575 """
7676
7777 def __init__ (
@@ -200,7 +200,7 @@ class ComponentEvidence:
200200 Provides the ability to document evidence collected through various forms of extraction or analysis.
201201
202202 .. note::
203- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_componentEvidenceType
203+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_componentEvidenceType
204204 """
205205
206206 def __init__ (
@@ -250,7 +250,7 @@ def __init__(
250250 # ... # TODO since CDX1.5
251251
252252 @property
253- @serializable .type_mapping (LicenseRepositoryHelper )
253+ @serializable .type_mapping (_LicenseRepositorySerializationHelper )
254254 @serializable .xml_sequence (4 )
255255 def licenses (self ) -> LicenseRepository :
256256 """
@@ -299,7 +299,7 @@ class ComponentScope(str, Enum):
299299 Enum object that defines the permissable 'scopes' for a Component according to the CycloneDX schema.
300300
301301 .. note::
302- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.3 /#type_scope
302+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /#type_scope
303303 """
304304 # see `_ComponentScopeSerializationHelper.__CASES` for view/case map
305305 REQUIRED = 'required'
@@ -355,7 +355,7 @@ class ComponentType(str, Enum):
355355 Enum object that defines the permissible 'types' for a Component according to the CycloneDX schema.
356356
357357 .. note::
358- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.3 /#type_classification
358+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /#type_classification
359359 """
360360 # see `_ComponentTypeSerializationHelper.__CASES` for view/case map
361361 APPLICATION = 'application'
@@ -434,7 +434,7 @@ class Diff:
434434 Our internal representation of the `diffType` complex type.
435435
436436 .. note::
437- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_diffType
437+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_diffType
438438 """
439439
440440 def __init__ (
@@ -505,7 +505,7 @@ class PatchClassification(str, Enum):
505505 Enum object that defines the permissible `patchClassification`s.
506506
507507 .. note::
508- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_patchClassification
508+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_patchClassification
509509 """
510510 BACKPORT = 'backport'
511511 CHERRY_PICK = 'cherry-pick'
@@ -519,7 +519,7 @@ class Patch:
519519 Our internal representation of the `patchType` complex type.
520520
521521 .. note::
522- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_patchType
522+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_patchType
523523 """
524524
525525 def __init__ (
@@ -612,7 +612,7 @@ class Pedigree:
612612 may not be known.
613613
614614 .. note::
615- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_pedigreeType
615+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_pedigreeType
616616 """
617617
618618 def __init__ (
@@ -769,7 +769,7 @@ class Swid:
769769 Our internal representation of the `swidType` complex type.
770770
771771 .. note::
772- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_swidType
772+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_swidType
773773 """
774774
775775 def __init__ (
@@ -1029,7 +1029,7 @@ class Component(Dependable):
10291029 This is our internal representation of a Component within a Bom.
10301030
10311031 .. note::
1032- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.3 /#type_component
1032+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /#type_component
10331033 """
10341034
10351035 @staticmethod
@@ -1171,7 +1171,7 @@ def mime_type(self, mime_type: Optional[str]) -> None:
11711171
11721172 @property
11731173 @serializable .json_name ('bom-ref' )
1174- @serializable .type_mapping (BomRefHelper )
1174+ @serializable .type_mapping (BomRef )
11751175 @serializable .view (SchemaVersion1Dot1 )
11761176 @serializable .view (SchemaVersion1Dot2 )
11771177 @serializable .view (SchemaVersion1Dot3 )
@@ -1407,7 +1407,7 @@ def hashes(self, hashes: Iterable[HashType]) -> None:
14071407 @serializable .view (SchemaVersion1Dot4 )
14081408 @serializable .view (SchemaVersion1Dot5 )
14091409 @serializable .view (SchemaVersion1Dot6 )
1410- @serializable .type_mapping (LicenseRepositoryHelper )
1410+ @serializable .type_mapping (_LicenseRepositorySerializationHelper )
14111411 @serializable .xml_sequence (12 )
14121412 def licenses (self ) -> LicenseRepository :
14131413 """
0 commit comments