Find
C
ase-sensitive
R
egexp search
Path
Showing
870d8e9d
from
2026-09-20
:
Bug
2073043
- Lint all memory headers r=pbone
firefox-main
/
third_party
/
python
/
cyclonedx_python_lib
/
cyclonedx
/
schema
Navigation
Enable keyboard shortcuts
Name
Description
Size
Coverage
__init__.py
Output formats. Cases are hashable. Do not rely on the actual/literal values, just use enum cases, like so: my_of = OutputFormat.XML
3080
-
_res
-
deprecation.py
CycloneDX Schema Deprecation Warnings ===================================== This module provides warning classes for deprecated features in CycloneDX schemas. Each warning class corresponds to a specific schema version, enabling downstream code to catch, filter, or otherwise handle schema-specific deprecation warnings. Intended Usage -------------- Downstream consumers can manage warnings using Python's ``warnings`` module. Common scenarios include: - Filtering by schema version - Suppressing warnings in tests or batch processing - Logging or reporting deprecation warnings without raising exceptions Example ------- .. code-block:: python import warnings from cyclonedx.schema.deprecation import ( BaseSchemaDeprecationWarning, SchemaDeprecationWarning1Dot7, ) # Suppress all CycloneDX schema deprecation warnings warnings.filterwarnings("ignore", category=BaseSchemaDeprecationWarning) # Suppress only warnings specific to schema version 1.7 warnings.filterwarnings("ignore", category=SchemaDeprecationWarning1Dot7) Notes ----- - All deprecation warnings inherit from :class:`BaseSchemaDeprecationWarning`. - The ``SCHEMA_VERSION`` class variable indicates the CycloneDX schema version where the feature became deprecated. - These warning classes are designed for downstream **filtering and logging**, not for raising exceptions.
4714
-
schema.py
Base class for schema version views.
3112
-