Skip to content

Commit

Permalink
Merge pull request #117 from jkowalleck/v1.4-dev_bugfix_issue83
Browse files Browse the repository at this point in the history
spec1.4 JSON schema : bugfixes  #83
  • Loading branch information
stevespringett authored Dec 29, 2021
2 parents f62480b + 886aa6a commit 374aa4c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 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 Expand Up @@ -183,7 +173,6 @@
"description": "The version of the tool"
},
"hashes": {
"$id": "#/properties/hashes",
"type": "array",
"items": {"$ref": "#/definitions/hash"},
"title": "Hashes",
Expand Down Expand Up @@ -431,7 +420,6 @@
"title": "External References"
},
"components": {
"$id": "#/properties/components",
"type": "array",
"items": {"$ref": "#/definitions/component"},
"uniqueItems": true,
Expand Down Expand Up @@ -868,7 +856,6 @@
]
},
"hashes": {
"$id": "#/properties/hashes",
"type": "array",
"items": {"$ref": "#/definitions/hash"},
"title": "Hashes",
Expand Down Expand Up @@ -979,7 +966,6 @@
"title": "External References"
},
"services": {
"$id": "#/properties/services",
"type": "array",
"items": {"$ref": "#/definitions/service"},
"uniqueItems": true,
Expand Down

0 comments on commit 374aa4c

Please sign in to comment.