Skip to content

Commit 9f54e54

Browse files
Minor ref optimizations
Signed-off-by: Steve Springett <[email protected]>
1 parent 0729b98 commit 9f54e54

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

schema/2.0/model/cyclonedx-perspective-2.0.schema.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
],
2525
"properties": {
2626
"bom-ref": {
27-
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/refType",
28-
"title": "BOM Reference",
29-
"description": "An identifier that can be used to reference this perspective elsewhere in the document. Every `bom-ref` shall be unique within the document.\nValue SHOULD NOT start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links."
27+
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/refType"
3028
},
3129
"name": {
3230
"type": "string",
@@ -61,20 +59,10 @@
6159
}
6260
},
6361
"externalReferences": {
64-
"type": "array",
65-
"title": "External References",
66-
"description": "References to external resources that provide additional context for the perspective, such as domain-specific standards, guidelines, or documentation.",
67-
"items": {
68-
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/externalReference"
69-
}
62+
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/externalReferences"
7063
},
7164
"properties": {
72-
"type": "array",
73-
"title": "Properties",
74-
"description": "Provides the ability to document properties in a name-value store. This provides flexibility to include data not officially supported in the standard without needing to use additional namespaces or create extensions.",
75-
"items": {
76-
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/property"
77-
}
65+
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/properties"
7866
}
7967
}
8068
},

0 commit comments

Comments
 (0)