Skip to content
Merged
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
9 changes: 9 additions & 0 deletions cyclonedx/model/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def __str__(self) -> str:
class Requirement:
"""
A requirement comprising a standard.

.. note::
See the CycloneDX Schema for hashType: https://cyclonedx.org/docs/1.6/json/#definitions_standards_items_requirements
"""

def __init__(
Expand Down Expand Up @@ -286,6 +289,9 @@ def __repr__(self) -> str:
class Level:
"""
Level of compliance for a standard.

.. note::
See the CycloneDX Schema for hashType: https://cyclonedx.org/docs/1.6/json/#definitions_standards_items_levels
"""

def __init__(
Expand Down Expand Up @@ -402,6 +408,9 @@ class Standard:
"""
A standard of regulations, industry or organizational-specific standards, maturity models, best practices,
or any other requirements.

.. note::
See the CycloneDX Schema for hashType: https://cyclonedx.org/docs/1.6/xml/#type_standard
"""

def __init__(
Expand Down
6 changes: 4 additions & 2 deletions cyclonedx/model/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class PredefinedLifecycle:
Object that defines pre-defined phases in the product lifecycle.

.. note::
See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6/xml/#metadata_lifecycles
See the CycloneDX Schema definition:
https://cyclonedx.org/docs/1.6/json/#tab-pane_metadata_lifecycles_items_oneOf_i0
"""

def __init__(self, phase: LifecyclePhase) -> None:
Expand Down Expand Up @@ -103,7 +104,8 @@ class NamedLifecycle:
Object that defines custom state in the product lifecycle.

.. note::
See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.6/xml/#metadata_lifecycles
See the CycloneDX Schema definition:
https://cyclonedx.org/docs/1.6/json/#tab-pane_metadata_lifecycles_items_oneOf_i1
"""

def __init__(self, name: str, *, description: Optional[str] = None) -> None:
Expand Down
Loading