diff --git a/schema/bom-1.6.schema.json b/schema/bom-1.6.schema.json
index 726fbf03..fe7ae83a 100644
--- a/schema/bom-1.6.schema.json
+++ b/schema/bom-1.6.schema.json
@@ -299,7 +299,7 @@
"description": "The name of the tool"
},
"version": {
- "type": "string",
+ "$ref": "#/definitions/version",
"title": "Tool Version",
"description": "The version of the tool"
},
@@ -457,10 +457,9 @@
"examples": ["tomcat-catalina"]
},
"version": {
- "type": "string",
+ "$ref": "#/definitions/version",
"title": "Component Version",
"description": "The component version. The version should ideally comply with semantic versioning but is not enforced.",
- "examples": ["9.0.14"]
},
"description": {
"type": "string",
@@ -1277,10 +1276,9 @@
"examples": ["ticker-service"]
},
"version": {
- "type": "string",
+ "$ref": "#/definitions/version",
"title": "Service Version",
- "description": "The service version.",
- "examples": ["1.0.0"]
+ "description": "The service version."
},
"description": {
"type": "string",
@@ -2320,16 +2318,36 @@
]
},
"version": {
- "description": "A single version of a component or service.",
+ "description": "A single disjunctive version identifier, for a component or service.",
"type": "string",
"minLength": 1,
- "maxLength": 1024
+ "maxLength": 1024,
+ "examples": [
+ "9.0.14",
+ "v1.33.7",
+ "7.0.0-M1",
+ "2.0pre1",
+ "1.0.0-beta1",
+ "0.8.15"
+ ]
},
- "range": {
+ "version-range": {
"description": "A version range specified in Package URL Version Range syntax (vers) which is defined at https://github.com/package-url/purl-spec/VERSION-RANGE-SPEC.rst",
"type": "string",
"minLength": 1,
- "maxLength": 1024
+ "maxLength": 1024,
+ "examples": [
+ "9.0.14",
+ "1.2.3|>=2.0.0|<5.0.0",
+ "0.0.0|0.0.1|0.0.2|0.0.3|1.0|2.0pre1",
+ ">=1.0.0-beta1|<=1.7.5|>=7.0.0-M1|<=7.0.7|>=7.1.0|<=7.1.2|>=8.0.0-M1|<=8.0.1",
+ ">=2.2.0|!= 2.2.1|<2.3.0"
+ ]
+ },
+ "range": {
+ "deprecated": true,
+ "description": "Deprecated definition. use definition `version-range` instead.",
+ "allOf": [{"$ref": "#/definitions/version-range"}]
},
"annotations": {
"type": "object",
diff --git a/schema/bom-1.6.xsd b/schema/bom-1.6.xsd
index 1cc87910..a55b4b27 100644
--- a/schema/bom-1.6.xsd
+++ b/schema/bom-1.6.xsd
@@ -54,6 +54,43 @@ limitations under the License.
+
+
+
+
+
+
+
+
+
+ =2.0.0|<5.0.0"
+ - "0.0.0|0.0.1|0.0.2|0.0.3|1.0|2.0pre1"
+ - ">=1.0.0-beta1|<=1.7.5|>=7.0.0-M1|<=7.0.7|>=7.1.0|<=7.1.2|>=8.0.0-M1|<=8.0.1"
+ - ">=2.2.0|!= 2.2.1|<2.3.0"
+ ]]>
+
+
+
+
+
+
+
+
@@ -338,7 +375,7 @@ limitations under the License.
The name of the tool
-
+
The version of the tool
@@ -463,7 +500,7 @@ limitations under the License.
of the component. Examples: commons-lang3 and jquery
-
+
The component version. The version should ideally comply with semantic versioning
but is not enforced.
@@ -1851,7 +1888,7 @@ limitations under the License.
of the service.
-
+
The service version.
@@ -3637,12 +3674,12 @@ limitations under the License.
-
+
A single version of a component or service.
-
+
A version range specified in Package URL Version Range syntax (vers) which is defined at https://github.com/package-url/purl-spec/VERSION-RANGE-SPEC.rst