Skip to content

Commit 2d4de5e

Browse files
committed
pull res/schema to 9b04a94474dfcabafe7d3a9f8db6c7e5eb868adb
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent e3cdbce commit 2d4de5e

6 files changed

+1584
-1536
lines changed

HISTORY.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@ All notable changes to this project will be documented in this file.
44

55
## unreleased
66

7+
* Changed
8+
* Use [version 9b04a94 of CycloneDX specification][CDX-specification#9b04a94474dfcabafe7d3a9f8db6c7e5eb868adb]
9+
for XML and JSON schema validation. (via [#150])
10+
* Use SPDX license enumeration from
11+
[version 9b04a94 of CycloneDX specification][CDX-specification#9b04a94474dfcabafe7d3a9f8db6c7e5eb868adb].
12+
(via [#150])
713
* Added
8-
* Models for `Property` and `PropertyRepository`. (via [#151])
14+
* Models for `Property` and `PropertyRepository`. (via [#151])
915
* JSON- and XML-Normalizer for `Models.Property`, `Models.PropertyRepository`. (via [#151])
1016
* New property `Models.Component.properties`. (via [#151])
1117

18+
[#150]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/150
1219
[#151]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/151
20+
[CDX-specification#9b04a94474dfcabafe7d3a9f8db6c7e5eb868adb]: https://github.com/CycloneDX/specification/tree/9b04a94474dfcabafe7d3a9f8db6c7e5eb868adb
1321

1422
## 1.2.0 - 2022-08-01
1523

@@ -43,8 +51,8 @@ All notable changes to this project will be documented in this file.
4351
* Added
4452
* Support for nested/bundled (sub-)components via `Models.Component.components` was added, including
4553
serialization/normalization of models and impact on dependency graphs rendering. ([#132] via [#136])
46-
* CycloneDX spec version 1.4 made element `Models.Component.version` optional.
47-
Therefore, serialization/normalization with this spec version will no longer render this element
54+
* [_CycloneDX_ Specification][CycloneDX-specification]-1.4 made element `Models.Component.version` optional.
55+
Therefore, serialization/normalization with this specification version will no longer render this element
4856
if its value is empty. (via [#137], [#138])
4957

5058
[#132]: https://github.com/CycloneDX/cyclonedx-javascript-library/issues/132
@@ -91,7 +99,7 @@ Initial release.
9199
* Provide data models to work with _CycloneDX_.
92100
* Provide a JSON- and an XML-normalizer, that...
93101
* supports all shipped data models.
94-
* respects any injected [_CycloneDX_ Specification][CycloneDX-spec] and generates valid output according to it.
102+
* respects any injected [_CycloneDX_ Specification][CycloneDX-specification] and generates valid output according to it.
95103
* can be configured to generate reproducible/deterministic output.
96104
* can prepare data structures for JSON- and XML-serialization.
97105
* Serialization:
@@ -125,7 +133,7 @@ Initial release.
125133
* Specific to _Node.js_: create data models from PackageJson-like data structures
126134
* Builders for the following use cases:
127135
* Specific to _Node.js_: create deep data models from PackageJson-like data structures
128-
* Implementation of the [_CycloneDX_ Specification][CycloneDX-spec] for the following versions:
136+
* Implementation of the [_CycloneDX_ Specification][CycloneDX-specification] for the following versions:
129137
* `1.4`
130138
* `1.3`
131139
* `1.2`
@@ -138,4 +146,4 @@ Initial release.
138146
* [xmlbuilder2](https://www.npmjs.com/package/xmlbuilder2)
139147

140148
[CycloneDX]: https://cyclonedx.org/
141-
[CycloneDX-spec]: https://github.com/CycloneDX/specification/tree/main/schema
149+
[CycloneDX-specification]: https://github.com/CycloneDX/specification/tree/main/schema

res/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ some schema for offline use.
88
original sources: https://github.com/CycloneDX/specification/tree/master/schema
99

1010
Currently using version
11-
[82bf9e30ba3fd6413e72a0e66adce2cdf3354f32](https://github.com/CycloneDX/specification/tree/82bf9e30ba3fd6413e72a0e66adce2cdf3354f32)
11+
[9b04a94474dfcabafe7d3a9f8db6c7e5eb868adb](https://github.com/CycloneDX/specification/tree/9b04a94474dfcabafe7d3a9f8db6c7e5eb868adb)
1212

1313
| file | note |
1414
| --- | --- |

res/bom-1.4.SNAPSHOT.schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@
14881488
"type": "array",
14891489
"title": "CWEs",
14901490
"description": "List of Common Weaknesses Enumerations (CWEs) codes that describes this vulnerability. For example 399 (of https://cwe.mitre.org/data/definitions/399.html)",
1491-
"examples": ["399"],
1491+
"examples": [399],
14921492
"additionalItems": false,
14931493
"items": {
14941494
"$ref": "#/definitions/cwe"

res/bom-1.4.SNAPSHOT.xsd

+12-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ limitations under the License.
2222
targetNamespace="http://cyclonedx.org/schema/bom/1.4"
2323
vc:minVersion="1.0"
2424
vc:maxVersion="1.1"
25-
version="1.4">
25+
version="1.4.2">
2626

2727
<xs:import namespace="http://cyclonedx.org/schema/spdx" schemaLocation="./spdx.SNAPSHOT.xsd"/>
2828

@@ -620,7 +620,7 @@ limitations under the License.
620620

621621
<xs:simpleType name="mimeType">
622622
<xs:restriction base="xs:token">
623-
<xs:pattern value="^[-+a-z0-9.]+/[-+a-z0-9.]+$"/>
623+
<xs:pattern value="[-+a-z0-9.]+/[-+a-z0-9.]+"/>
624624
</xs:restriction>
625625
</xs:simpleType>
626626

@@ -2014,6 +2014,16 @@ limitations under the License.
20142014
</xs:sequence>
20152015
</xs:complexType>
20162016
</xs:element>
2017+
<xs:element name="properties" type="bom:propertiesType" minOccurs="0" maxOccurs="1">
2018+
<xs:annotation>
2019+
<xs:documentation>Provides the ability to document properties in a key/value store.
2020+
This provides flexibility to include data not officially supported in the standard
2021+
without having to use additional namespaces or create extensions. Property names
2022+
of interest to the general public are encouraged to be registered in the
2023+
CycloneDX Property Taxonomy - https://github.com/CycloneDX/cyclonedx-property-taxonomy.
2024+
Formal registration is OPTIONAL.</xs:documentation>
2025+
</xs:annotation>
2026+
</xs:element>
20172027
</xs:sequence>
20182028
<xs:attribute name="bom-ref" type="bom:refType">
20192029
<xs:annotation>

0 commit comments

Comments
 (0)