Skip to content

Commit

Permalink
spec 1.4 JSON schema: removed redundant/self-sadowing $ids
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Dec 28, 2021
1 parent 31be6e0 commit 18767bd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions schema/bom-1.4-SNAPSHOT.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
]
},
"bomFormat": {
"$id": "#/properties/bomFormat",
"type": "string",
"title": "BOM Format",
"description": "Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOMs do not have a filename convention nor does JSON schema support namespaces. This value MUST be \"CycloneDX\".",
Expand All @@ -27,65 +26,56 @@
]
},
"specVersion": {
"$id": "#/properties/specVersion",
"type": "string",
"title": "CycloneDX Specification Version",
"description": "The version of the CycloneDX specification a BOM conforms to (starting at version 1.2).",
"examples": ["1.4"]
},
"serialNumber": {
"$id": "#/properties/serialNumber",
"type": "string",
"title": "BOM Serial Number",
"description": "Every BOM generated SHOULD have a unique serial number, even if the contents of the BOM have not changed over time. If specified, the serial number MUST conform to RFC-4122. Use of serial numbers are RECOMMENDED.",
"examples": ["urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"],
"pattern": "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
},
"version": {
"$id": "#/properties/version",
"type": "integer",
"title": "BOM Version",
"description": "Whenever an existing BOM is modified, either manually or through automated processes, the version of the BOM SHOULD be incremented by 1. When a system is presented with multiple BOMs with identical serial numbers, the system SHOULD use the most recent version of the BOM. The default version is '1'.",
"default": 1,
"examples": [1]
},
"metadata": {
"$id": "#/properties/metadata",
"$ref": "#/definitions/metadata",
"title": "BOM Metadata",
"description": "Provides additional information about a BOM."
},
"components": {
"$id": "#/properties/components",
"type": "array",
"items": {"$ref": "#/definitions/component"},
"uniqueItems": true,
"title": "Components"
},
"services": {
"$id": "#/properties/services",
"type": "array",
"items": {"$ref": "#/definitions/service"},
"uniqueItems": true,
"title": "Services"
},
"externalReferences": {
"$id": "#/properties/externalReferences",
"type": "array",
"items": {"$ref": "#/definitions/externalReference"},
"title": "External References",
"description": "External references provide a way to document systems, sites, and information that may be relevant but which are not included with the BOM."
},
"dependencies": {
"$id": "#/properties/dependencies",
"type": "array",
"items": {"$ref": "#/definitions/dependency"},
"uniqueItems": true,
"title": "Dependencies",
"description": "Provides the ability to document dependency relationships."
},
"compositions": {
"$id": "#/properties/compositions",
"type": "array",
"items": {"$ref": "#/definitions/compositions"},
"uniqueItems": true,
Expand Down

0 comments on commit 18767bd

Please sign in to comment.