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__ (
@@ -201,7 +201,7 @@ class ComponentEvidence:
201201 Provides the ability to document evidence collected through various forms of extraction or analysis.
202202
203203 .. note::
204- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_componentEvidenceType
204+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_componentEvidenceType
205205 """
206206
207207 def __init__ (
@@ -251,7 +251,7 @@ def __init__(
251251 # ... # TODO since CDX1.5
252252
253253 @property
254- @serializable .type_mapping (LicenseRepositoryHelper )
254+ @serializable .type_mapping (_LicenseRepositorySerializationHelper )
255255 @serializable .xml_sequence (4 )
256256 def licenses (self ) -> LicenseRepository :
257257 """
@@ -306,7 +306,7 @@ class ComponentScope(str, Enum):
306306 Enum object that defines the permissable 'scopes' for a Component according to the CycloneDX schema.
307307
308308 .. note::
309- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.3 /#type_scope
309+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /#type_scope
310310 """
311311 # see `_ComponentScopeSerializationHelper.__CASES` for view/case map
312312 REQUIRED = 'required'
@@ -362,7 +362,7 @@ class ComponentType(str, Enum):
362362 Enum object that defines the permissible 'types' for a Component according to the CycloneDX schema.
363363
364364 .. note::
365- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.3 /#type_classification
365+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /#type_classification
366366 """
367367 # see `_ComponentTypeSerializationHelper.__CASES` for view/case map
368368 APPLICATION = 'application'
@@ -441,7 +441,7 @@ class Diff:
441441 Our internal representation of the `diffType` complex type.
442442
443443 .. note::
444- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_diffType
444+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_diffType
445445 """
446446
447447 def __init__ (
@@ -513,7 +513,7 @@ class PatchClassification(str, Enum):
513513 Enum object that defines the permissible `patchClassification`s.
514514
515515 .. note::
516- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_patchClassification
516+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_patchClassification
517517 """
518518 BACKPORT = 'backport'
519519 CHERRY_PICK = 'cherry-pick'
@@ -527,7 +527,7 @@ class Patch:
527527 Our internal representation of the `patchType` complex type.
528528
529529 .. note::
530- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_patchType
530+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_patchType
531531 """
532532
533533 def __init__ (
@@ -621,7 +621,7 @@ class Pedigree:
621621 may not be known.
622622
623623 .. note::
624- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_pedigreeType
624+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_pedigreeType
625625 """
626626
627627 def __init__ (
@@ -779,7 +779,7 @@ class Swid:
779779 Our internal representation of the `swidType` complex type.
780780
781781 .. note::
782- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4 /xml/#type_swidType
782+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /xml/#type_swidType
783783 """
784784
785785 def __init__ (
@@ -1040,7 +1040,7 @@ class Component(Dependable):
10401040 This is our internal representation of a Component within a Bom.
10411041
10421042 .. note::
1043- See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.3 /#type_component
1043+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6 /#type_component
10441044 """
10451045
10461046 @staticmethod
@@ -1182,7 +1182,7 @@ def mime_type(self, mime_type: Optional[str]) -> None:
11821182
11831183 @property
11841184 @serializable .json_name ('bom-ref' )
1185- @serializable .type_mapping (BomRefHelper )
1185+ @serializable .type_mapping (BomRef )
11861186 @serializable .view (SchemaVersion1Dot1 )
11871187 @serializable .view (SchemaVersion1Dot2 )
11881188 @serializable .view (SchemaVersion1Dot3 )
@@ -1418,7 +1418,7 @@ def hashes(self, hashes: Iterable[HashType]) -> None:
14181418 @serializable .view (SchemaVersion1Dot4 )
14191419 @serializable .view (SchemaVersion1Dot5 )
14201420 @serializable .view (SchemaVersion1Dot6 )
1421- @serializable .type_mapping (LicenseRepositoryHelper )
1421+ @serializable .type_mapping (_LicenseRepositorySerializationHelper )
14221422 @serializable .xml_sequence (12 )
14231423 def licenses (self ) -> LicenseRepository :
14241424 """
0 commit comments