Skip to content

Commit 5aa0714

Browse files
Merge pull request #125 from mrutkows/least-invasive
Preserve keys, but fix potential JSON pointers to reflect actual DOM…
2 parents 2c9941c + 3e11a10 commit 5aa0714

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

schema/bom-1.2-strict.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"description": "The date and time (timestamp) when the document was created."
153153
},
154154
"hashes": {
155-
"$id": "#/properties/hashes",
155+
"$id": "#/definitions/tool/properties/hashes",
156156
"type": "array",
157157
"items": {"$ref": "#/definitions/hash"},
158158
"title": "Hashes",
@@ -446,7 +446,7 @@
446446
"title": "External References"
447447
},
448448
"components": {
449-
"$id": "#/properties/components",
449+
"$id": "#/definitions/component/properties/components",
450450
"type": "array",
451451
"items": {"$ref": "#/definitions/component"},
452452
"uniqueItems": true,
@@ -985,7 +985,7 @@
985985
"title": "External References"
986986
},
987987
"services": {
988-
"$id": "#/properties/services",
988+
"$id": "#/definitions/service/properties/services",
989989
"type": "array",
990990
"items": {"$ref": "#/definitions/service"},
991991
"uniqueItems": true,

schema/bom-1.2.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"description": "The date and time (timestamp) when the document was created."
144144
},
145145
"hashes": {
146-
"$id": "#/properties/hashes",
146+
"$id": "#/definitions/tool/properties/hashes",
147147
"type": "array",
148148
"items": {"$ref": "#/definitions/hash"},
149149
"title": "Hashes",
@@ -432,7 +432,7 @@
432432
"title": "External References"
433433
},
434434
"components": {
435-
"$id": "#/properties/components",
435+
"$id": "#/definitions/component/properties/components",
436436
"type": "array",
437437
"items": {"$ref": "#/definitions/component"},
438438
"uniqueItems": true,
@@ -957,7 +957,7 @@
957957
"title": "External References"
958958
},
959959
"services": {
960-
"$id": "#/properties/services",
960+
"$id": "#/definitions/service/properties/services",
961961
"type": "array",
962962
"items": {"$ref": "#/definitions/service"},
963963
"uniqueItems": true,

schema/bom-1.3-strict.schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"description": "The date and time (timestamp) when the document was created."
168168
},
169169
"hashes": {
170-
"$id": "#/properties/hashes",
170+
"$id": "#/definitions/tool/properties/hashes",
171171
"type": "array",
172172
"items": {"$ref": "#/definitions/hash"},
173173
"title": "Hashes",
@@ -408,7 +408,7 @@
408408
"title": "External References"
409409
},
410410
"components": {
411-
"$id": "#/properties/components",
411+
"$id": "#/definitions/component/properties/components",
412412
"type": "array",
413413
"items": {"$ref": "#/definitions/component"},
414414
"uniqueItems": true,
@@ -834,7 +834,7 @@
834834
]
835835
},
836836
"hashes": {
837-
"$id": "#/properties/hashes",
837+
"$id": "#/definitions/externalReference/properties/hashes",
838838
"type": "array",
839839
"items": {"$ref": "#/definitions/hash"},
840840
"title": "Hashes",
@@ -945,7 +945,7 @@
945945
"title": "External References"
946946
},
947947
"services": {
948-
"$id": "#/properties/services",
948+
"$id": "#/definitions/service/properties/services",
949949
"type": "array",
950950
"items": {"$ref": "#/definitions/service"},
951951
"uniqueItems": true,

schema/bom-1.3.schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"description": "The date and time (timestamp) when the document was created."
159159
},
160160
"hashes": {
161-
"$id": "#/properties/hashes",
161+
"$id": "#/definitions/tool/properties/hashes",
162162
"type": "array",
163163
"items": {"$ref": "#/definitions/hash"},
164164
"title": "Hashes",
@@ -395,7 +395,7 @@
395395
"title": "External References"
396396
},
397397
"components": {
398-
"$id": "#/properties/components",
398+
"$id": "#/definitions/component/properties/components",
399399
"type": "array",
400400
"items": {"$ref": "#/definitions/component"},
401401
"uniqueItems": true,
@@ -809,7 +809,7 @@
809809
]
810810
},
811811
"hashes": {
812-
"$id": "#/properties/hashes",
812+
"$id": "#/definitions/externalReference/properties/hashes",
813813
"type": "array",
814814
"items": {"$ref": "#/definitions/hash"},
815815
"title": "Hashes",
@@ -918,7 +918,7 @@
918918
"title": "External References"
919919
},
920920
"services": {
921-
"$id": "#/properties/services",
921+
"$id": "#/definitions/service/properties/services",
922922
"type": "array",
923923
"items": {"$ref": "#/definitions/service"},
924924
"uniqueItems": true,

0 commit comments

Comments
 (0)