Skip to content

Commit 386b72f

Browse files
committed
docs
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent c57d6b9 commit 386b72f

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

cyclonedx/model/vulnerability.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,19 @@ class VulnerabilityReference:
489489
490490
.. note::
491491
Properties ``id`` and ``source`` are mandatory.
492-
In v1.4 JSON scheme, both properties were mandatory: https://github.com/CycloneDX/specification/blob/d570ffb8956d796585b9574e57598c42ee9de770/schema/bom-1.4.schema.json#L1455-L1474
493-
In v1.4 XML schema, both properties were optional: https://github.com/CycloneDX/specification/blob/d570ffb8956d796585b9574e57598c42ee9de770/schema/bom-1.4.xsd#L1788-L1797
494-
In v1.5 XML schema, both were mandatory: https://github.com/CycloneDX/specification/blob/d570ffb8956d796585b9574e57598c42ee9de770/schema/bom-1.5.xsd#L3364-L3374
495-
Decision: since CycloneDXCoreWorkingGroup chose JSON schema as the dominant schema, the one that serves as first spec implementation, and since XML schema was "fixed" to work same as JSON schema, we'd consider it canon/spec that both properties were always mandatory.
492+
493+
History:
494+
* In v1.4 JSON scheme, both properties were mandatory
495+
https://github.com/CycloneDX/specification/blob/d570ffb8956d796585b9574e57598c42ee9de770/schema/bom-1.4.schema.json#L1455-L1474
496+
* In v1.4 XML schema, both properties were optional
497+
https://github.com/CycloneDX/specification/blob/d570ffb8956d796585b9574e57598c42ee9de770/schema/bom-1.4.xsd#L1788-L1797
498+
* In v1.5 XML schema, both were mandatory
499+
https://github.com/CycloneDX/specification/blob/d570ffb8956d796585b9574e57598c42ee9de770/schema/bom-1.5.xsd#L3364-L3374
500+
501+
Decision:
502+
Since CycloneDXCoreWorkingGroup chose JSON schema as the dominant schema, the one that serves as first spec
503+
implementation, and since XML schema was "fixed" to work same as JSON schema, we'd consider it canon/spec that
504+
both properties were always mandatory.
496505
"""
497506

498507
def __init__(

0 commit comments

Comments
 (0)