diff --git a/tests/_data/schemaTestData/1.6/invalid-bomformat-1.6.json b/tests/_data/schemaTestData/1.6/invalid-bomformat-1.6.json
index ee8df941f..f4874069c 100644
--- a/tests/_data/schemaTestData/1.6/invalid-bomformat-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-bomformat-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "AnotherFormat",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-component-ref-1.6.json b/tests/_data/schemaTestData/1.6/invalid-component-ref-1.6.json
index 46c971c01..b4856c5d3 100644
--- a/tests/_data/schemaTestData/1.6/invalid-component-ref-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-component-ref-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
@@ -10,12 +11,6 @@
"name": "acme-library",
"version": "1.0.0"
},
- {
- "type": "library",
- "bom-ref": "123",
- "name": "acme-library",
- "version": "1.0.0"
- },
{
"type": "library",
"bom-ref": "",
diff --git a/tests/_data/schemaTestData/1.6/invalid-component-ref-1.6.xml b/tests/_data/schemaTestData/1.6/invalid-component-ref-1.6.xml
index 78467e362..770efd83e 100644
--- a/tests/_data/schemaTestData/1.6/invalid-component-ref-1.6.xml
+++ b/tests/_data/schemaTestData/1.6/invalid-component-ref-1.6.xml
@@ -10,6 +10,10 @@
acme-library
1.0.0
+
+ acme-library2
+ 1.0.0
+
acme-library
diff --git a/tests/_data/schemaTestData/1.6/invalid-component-swid-1.6.json b/tests/_data/schemaTestData/1.6/invalid-component-swid-1.6.json
index b4aed9474..7acf18d4d 100644
--- a/tests/_data/schemaTestData/1.6/invalid-component-swid-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-component-swid-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-component-type-1.6.json b/tests/_data/schemaTestData/1.6/invalid-component-type-1.6.json
index 9404400c5..bc5dd16ac 100644
--- a/tests/_data/schemaTestData/1.6/invalid-component-type-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-component-type-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-dependency-1.6.json b/tests/_data/schemaTestData/1.6/invalid-dependency-1.6.json
index 6d6993acd..e46c5ca20 100644
--- a/tests/_data/schemaTestData/1.6/invalid-dependency-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-dependency-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-empty-component-1.6.json b/tests/_data/schemaTestData/1.6/invalid-empty-component-1.6.json
index 76d2edd6a..ced677ee5 100644
--- a/tests/_data/schemaTestData/1.6/invalid-empty-component-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-empty-component-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-hash-alg-1.6.json b/tests/_data/schemaTestData/1.6/invalid-hash-alg-1.6.json
index b21fc9213..a841909f8 100644
--- a/tests/_data/schemaTestData/1.6/invalid-hash-alg-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-hash-alg-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-hash-md5-1.6.json b/tests/_data/schemaTestData/1.6/invalid-hash-md5-1.6.json
index 5c4938470..37140dfe2 100644
--- a/tests/_data/schemaTestData/1.6/invalid-hash-md5-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-hash-md5-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-hash-sha1-1.6.json b/tests/_data/schemaTestData/1.6/invalid-hash-sha1-1.6.json
index 441fec3eb..ba3ef962a 100644
--- a/tests/_data/schemaTestData/1.6/invalid-hash-sha1-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-hash-sha1-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-hash-sha256-1.6.json b/tests/_data/schemaTestData/1.6/invalid-hash-sha256-1.6.json
index b7f8d1dea..1944c51df 100644
--- a/tests/_data/schemaTestData/1.6/invalid-hash-sha256-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-hash-sha256-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-hash-sha512-1.6.json b/tests/_data/schemaTestData/1.6/invalid-hash-sha512-1.6.json
index 0b56c35a5..3065415cc 100644
--- a/tests/_data/schemaTestData/1.6/invalid-hash-sha512-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-hash-sha512-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-issue-type-1.6.json b/tests/_data/schemaTestData/1.6/invalid-issue-type-1.6.json
index ef1c08b52..4e05dae08 100644
--- a/tests/_data/schemaTestData/1.6/invalid-issue-type-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-issue-type-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-license-choice-1.6.json b/tests/_data/schemaTestData/1.6/invalid-license-choice-1.6.json
index 483994737..8977bdad0 100644
--- a/tests/_data/schemaTestData/1.6/invalid-license-choice-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-license-choice-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-license-encoding-1.6.json b/tests/_data/schemaTestData/1.6/invalid-license-encoding-1.6.json
index 794c566c1..2c6c074f9 100644
--- a/tests/_data/schemaTestData/1.6/invalid-license-encoding-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-license-encoding-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-license-id-1.6.json b/tests/_data/schemaTestData/1.6/invalid-license-id-1.6.json
index 907d55814..c183abc6a 100644
--- a/tests/_data/schemaTestData/1.6/invalid-license-id-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-license-id-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-license-missing-id-and-name-1.6.json b/tests/_data/schemaTestData/1.6/invalid-license-missing-id-and-name-1.6.json
index 65b72d310..b70f8f6d9 100644
--- a/tests/_data/schemaTestData/1.6/invalid-license-missing-id-and-name-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-license-missing-id-and-name-1.6.json
@@ -1,10 +1,12 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
"version": 1,
"components": [
{
+ "type": "library",
"name": "license-with-no-id-nor-name",
"version": "23",
"description": "testcase for issue#288",
diff --git a/tests/_data/schemaTestData/1.6/invalid-metadata-license-1.6.json b/tests/_data/schemaTestData/1.6/invalid-metadata-license-1.6.json
index a510758b6..9db03c948 100644
--- a/tests/_data/schemaTestData/1.6/invalid-metadata-license-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-metadata-license-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-metadata-timestamp-1.6.json b/tests/_data/schemaTestData/1.6/invalid-metadata-timestamp-1.6.json
index e3f1884b6..14bbdee56 100644
--- a/tests/_data/schemaTestData/1.6/invalid-metadata-timestamp-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-metadata-timestamp-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-missing-component-type-1.6.json b/tests/_data/schemaTestData/1.6/invalid-missing-component-type-1.6.json
index ec0b081e6..ea53406f9 100644
--- a/tests/_data/schemaTestData/1.6/invalid-missing-component-type-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-missing-component-type-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-patch-type-1.6.json b/tests/_data/schemaTestData/1.6/invalid-patch-type-1.6.json
index a71680e39..51de20b1e 100644
--- a/tests/_data/schemaTestData/1.6/invalid-patch-type-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-patch-type-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-properties-1.6.json b/tests/_data/schemaTestData/1.6/invalid-properties-1.6.json
index 069850353..219544f30 100644
--- a/tests/_data/schemaTestData/1.6/invalid-properties-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-properties-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:bcb403ae-91fa-436e-bc93-84d1078cdeed",
diff --git a/tests/_data/schemaTestData/1.6/invalid-scope-1.6.json b/tests/_data/schemaTestData/1.6/invalid-scope-1.6.json
index cbb68fa26..dcc78ab57 100644
--- a/tests/_data/schemaTestData/1.6/invalid-scope-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-scope-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/invalid-serialnumber-1.6.json b/tests/_data/schemaTestData/1.6/invalid-serialnumber-1.6.json
index fdc34e3d9..9aea4ae49 100644
--- a/tests/_data/schemaTestData/1.6/invalid-serialnumber-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-serialnumber-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f",
diff --git a/tests/_data/schemaTestData/1.6/invalid-service-data-1.6.json b/tests/_data/schemaTestData/1.6/invalid-service-data-1.6.json
index 9f0285943..9fb86ef61 100644
--- a/tests/_data/schemaTestData/1.6/invalid-service-data-1.6.json
+++ b/tests/_data/schemaTestData/1.6/invalid-service-data-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-annotation-1.6.json b/tests/_data/schemaTestData/1.6/valid-annotation-1.6.json
index 790fc2808..b0e8ec7d9 100644
--- a/tests/_data/schemaTestData/1.6/valid-annotation-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-annotation-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-assembly-1.6.json b/tests/_data/schemaTestData/1.6/valid-assembly-1.6.json
index 681c10e61..864e0e4fa 100644
--- a/tests/_data/schemaTestData/1.6/valid-assembly-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-assembly-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-attestation-1.6.json b/tests/_data/schemaTestData/1.6/valid-attestation-1.6.json
index 57a049728..9caa455df 100644
--- a/tests/_data/schemaTestData/1.6/valid-attestation-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-attestation-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-bom-1.6.json b/tests/_data/schemaTestData/1.6/valid-bom-1.6.json
index 6244850f5..c07ab7b0c 100644
--- a/tests/_data/schemaTestData/1.6/valid-bom-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-bom-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-component-data-1.6.json b/tests/_data/schemaTestData/1.6/valid-component-data-1.6.json
new file mode 100644
index 000000000..f78163f95
--- /dev/null
+++ b/tests/_data/schemaTestData/1.6/valid-component-data-1.6.json
@@ -0,0 +1,30 @@
+{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.6",
+ "serialNumber": "urn:uuid:1b1bff0e-fdb9-4088-8b9a-1a9f2d9006da",
+ "version": 1,
+ "components": [
+ {
+ "type": "data",
+ "name": "my-configs",
+ "version": "1337",
+ "data": [
+ {
+ "type": "configuration",
+ "name": "app.ini",
+ "contents": {
+ "url": "https://example.com/cfg/1337/app.ini"
+ }
+ },
+ {
+ "type": "other",
+ "name": ".env",
+ "contents": {
+ "url": "https://example.com/cfg/1337/env"
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/tests/_data/schemaTestData/1.6/valid-component-data-1.6.xml b/tests/_data/schemaTestData/1.6/valid-component-data-1.6.xml
new file mode 100644
index 000000000..fe89d8038
--- /dev/null
+++ b/tests/_data/schemaTestData/1.6/valid-component-data-1.6.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ my-configs
+ 1337
+
+ configuration
+ app.ini
+
+ https://example.com/cfg/1337/app.ini
+
+
+
+ other
+ .env
+
+ https://example.com/cfg/1337/env
+
+
+
+
+
diff --git a/tests/_data/schemaTestData/1.6/valid-component-hashes-1.6.json b/tests/_data/schemaTestData/1.6/valid-component-hashes-1.6.json
index fcb58a93e..91d15f58a 100644
--- a/tests/_data/schemaTestData/1.6/valid-component-hashes-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-component-hashes-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-component-identifiers-1.6.json b/tests/_data/schemaTestData/1.6/valid-component-identifiers-1.6.json
index 37175a6ef..de0d2a094 100644
--- a/tests/_data/schemaTestData/1.6/valid-component-identifiers-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-component-identifiers-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-component-ref-1.6.json b/tests/_data/schemaTestData/1.6/valid-component-ref-1.6.json
index 977fb1ebd..73cf35cf5 100644
--- a/tests/_data/schemaTestData/1.6/valid-component-ref-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-component-ref-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-component-swid-1.6.json b/tests/_data/schemaTestData/1.6/valid-component-swid-1.6.json
index 9b63b942d..bff17b97c 100644
--- a/tests/_data/schemaTestData/1.6/valid-component-swid-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-component-swid-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-component-swid-full-1.6.json b/tests/_data/schemaTestData/1.6/valid-component-swid-full-1.6.json
index 576131ceb..e0e831154 100644
--- a/tests/_data/schemaTestData/1.6/valid-component-swid-full-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-component-swid-full-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-component-types-1.6.json b/tests/_data/schemaTestData/1.6/valid-component-types-1.6.json
index 782e701bc..8b1abd7ee 100644
--- a/tests/_data/schemaTestData/1.6/valid-component-types-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-component-types-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
@@ -43,6 +44,11 @@
"type": "file",
"name": "file-a",
"version": "1.0"
+ },
+ {
+ "type": "data",
+ "name": "data-a",
+ "version": "1.0"
}
]
}
diff --git a/tests/_data/schemaTestData/1.6/valid-component-types-1.6.xml b/tests/_data/schemaTestData/1.6/valid-component-types-1.6.xml
index b66c396ee..d8c70784d 100644
--- a/tests/_data/schemaTestData/1.6/valid-component-types-1.6.xml
+++ b/tests/_data/schemaTestData/1.6/valid-component-types-1.6.xml
@@ -33,5 +33,9 @@
file-a
1.0
+
+ data-a
+ 1.0
+
diff --git a/tests/_data/schemaTestData/1.6/valid-compositions-1.6.json b/tests/_data/schemaTestData/1.6/valid-compositions-1.6.json
index 9cdbfe987..8b8dcbf37 100644
--- a/tests/_data/schemaTestData/1.6/valid-compositions-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-compositions-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-cryptography-full-1.6.json b/tests/_data/schemaTestData/1.6/valid-cryptography-full-1.6.json
index e25d4dd94..ac1344659 100644
--- a/tests/_data/schemaTestData/1.6/valid-cryptography-full-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-cryptography-full-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-cryptography-implementation-1.6.json b/tests/_data/schemaTestData/1.6/valid-cryptography-implementation-1.6.json
index 3bff09452..a143b9b33 100644
--- a/tests/_data/schemaTestData/1.6/valid-cryptography-implementation-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-cryptography-implementation-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-dependency-1.6.json b/tests/_data/schemaTestData/1.6/valid-dependency-1.6.json
index 3d2465475..1e87f38ef 100644
--- a/tests/_data/schemaTestData/1.6/valid-dependency-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-dependency-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-empty-components-1.6.json b/tests/_data/schemaTestData/1.6/valid-empty-components-1.6.json
index 572b398ce..a634de3f6 100644
--- a/tests/_data/schemaTestData/1.6/valid-empty-components-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-empty-components-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-evidence-1.6.json b/tests/_data/schemaTestData/1.6/valid-evidence-1.6.json
index b80656bb8..9bb4ebc3a 100644
--- a/tests/_data/schemaTestData/1.6/valid-evidence-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-evidence-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-external-reference-1.6.json b/tests/_data/schemaTestData/1.6/valid-external-reference-1.6.json
index e3913d843..f5e245612 100644
--- a/tests/_data/schemaTestData/1.6/valid-external-reference-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-external-reference-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
@@ -33,6 +34,185 @@
"comment": "Vendor provided documentation for the product"
}
]
+ },
+ {
+ "type": "application",
+ "name": "dummy",
+ "description": "this component has all external reference types possible",
+ "externalReferences": [
+ {
+ "type": "vcs",
+ "url": "http://example.com/extref/vcs"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "http://example.com/extref/issue-tracker"
+ },
+ {
+ "type": "website",
+ "url": "http://example.com/extref/website"
+ },
+ {
+ "type": "advisories",
+ "url": "http://example.com/extref/advisories"
+ },
+ {
+ "type": "bom",
+ "url": "http://example.com/extref/bom"
+ },
+ {
+ "type": "mailing-list",
+ "url": "http://example.com/extref/mailing-list"
+ },
+ {
+ "type": "social",
+ "url": "http://example.com/extref/social"
+ },
+ {
+ "type": "chat",
+ "url": "http://example.com/extref/chat"
+ },
+ {
+ "type": "documentation",
+ "url": "http://example.com/extref/documentation"
+ },
+ {
+ "type": "support",
+ "url": "http://example.com/extref/support"
+ },
+ {
+ "type": "source-distribution",
+ "url": "http://example.com/extref/source-distribution"
+ },
+ {
+ "type": "distribution",
+ "url": "http://example.com/extref/distribution"
+ },
+ {
+ "type": "distribution-intake",
+ "url": "http://example.com/extref/distribution-intake"
+ },
+ {
+ "type": "license",
+ "url": "http://example.com/extref/license"
+ },
+ {
+ "type": "build-meta",
+ "url": "http://example.com/extref/build-meta"
+ },
+ {
+ "type": "build-system",
+ "url": "http://example.com/extref/build-system"
+ },
+ {
+ "type": "release-notes",
+ "url": "http://example.com/extref/release-notes"
+ },
+ {
+ "type": "security-contact",
+ "url": "http://example.com/extref/security-contact"
+ },
+ {
+ "type": "model-card",
+ "url": "http://example.com/extref/model-card"
+ },
+ {
+ "type": "log",
+ "url": "http://example.com/extref/log"
+ },
+ {
+ "type": "configuration",
+ "url": "http://example.com/extref/configuration"
+ },
+ {
+ "type": "evidence",
+ "url": "http://example.com/extref/evidence"
+ },
+ {
+ "type": "formulation",
+ "url": "http://example.com/extref/formulation"
+ },
+ {
+ "type": "attestation",
+ "url": "http://example.com/extref/attestation"
+ },
+ {
+ "type": "threat-model",
+ "url": "http://example.com/extref/threat-model"
+ },
+ {
+ "type": "adversary-model",
+ "url": "http://example.com/extref/adversary-model"
+ },
+ {
+ "type": "risk-assessment",
+ "url": "http://example.com/extref/risk-assessment"
+ },
+ {
+ "type": "vulnerability-assertion",
+ "url": "http://example.com/extref/vulnerability-assertion"
+ },
+ {
+ "type": "exploitability-statement",
+ "url": "http://example.com/extref/exploitability-statement"
+ },
+ {
+ "type": "pentest-report",
+ "url": "http://example.com/extref/pentest-report"
+ },
+ {
+ "type": "static-analysis-report",
+ "url": "http://example.com/extref/static-analysis-report"
+ },
+ {
+ "type": "dynamic-analysis-report",
+ "url": "http://example.com/extref/dynamic-analysis-report"
+ },
+ {
+ "type": "runtime-analysis-report",
+ "url": "http://example.com/extref/runtime-analysis-report"
+ },
+ {
+ "type": "component-analysis-report",
+ "url": "http://example.com/extref/component-analysis-report"
+ },
+ {
+ "type": "maturity-report",
+ "url": "http://example.com/extref/maturity-report"
+ },
+ {
+ "type": "certification-report",
+ "url": "http://example.com/extref/certification-report"
+ },
+ {
+ "type": "quality-metrics",
+ "url": "http://example.com/extref/quality-metrics"
+ },
+ {
+ "type": "codified-infrastructure",
+ "url": "http://example.com/extref/codified-infrastructure"
+ },
+ {
+ "type": "poam",
+ "url": "http://example.com/extref/poam"
+ },
+ {
+ "type": "electronic-signature",
+ "url": "http://example.com/extref/electronic-signature"
+ },
+ {
+ "type": "digital-signature",
+ "url": "http://example.com/extref/digital-signature"
+ },
+ {
+ "type": "rfc-9116",
+ "url": "http://example.com/extref/rfc-9116"
+ },
+ {
+ "type": "other",
+ "url": "http://example.com/extref/other"
+ }
+ ]
}
]
}
diff --git a/tests/_data/schemaTestData/1.6/valid-external-reference-1.6.xml b/tests/_data/schemaTestData/1.6/valid-external-reference-1.6.xml
index 21810f3c6..f30782f79 100644
--- a/tests/_data/schemaTestData/1.6/valid-external-reference-1.6.xml
+++ b/tests/_data/schemaTestData/1.6/valid-external-reference-1.6.xml
@@ -23,5 +23,54 @@
+
+ dummy
+ this component has all external reference types possible
+
+ http://example.com/extref/vcs
+ http://example.com/extref/issue-tracker
+ http://example.com/extref/website
+ http://example.com/extref/advisories
+ http://example.com/extref/bom
+ http://example.com/extref/mailing-list
+ http://example.com/extref/social
+ http://example.com/extref/chat
+ http://example.com/extref/documentation
+ http://example.com/extref/support
+ http://example.com/extref/source-distribution
+ http://example.com/extref/distribution
+ http://example.com/extref/distribution-intake
+ http://example.com/extref/license
+ http://example.com/extref/build-meta
+ http://example.com/extref/build-system
+ http://example.com/extref/release-notes
+ http://example.com/extref/security-contact
+ http://example.com/extref/model-card
+ http://example.com/extref/log
+ http://example.com/extref/configuration
+ http://example.com/extref/evidence
+ http://example.com/extref/formulation
+ http://example.com/extref/attestation
+ http://example.com/extref/threat-model
+ http://example.com/extref/adversary-model
+ http://example.com/extref/risk-assessment
+ http://example.com/extref/vulnerability-assertion
+ http://example.com/extref/exploitability-statement
+ http://example.com/extref/pentest-report
+ http://example.com/extref/static-analysis-report
+ http://example.com/extref/dynamic-analysis-report
+ http://example.com/extref/runtime-analysis-report
+ http://example.com/extref/component-analysis-report
+ http://example.com/extref/maturity-report
+ http://example.com/extref/certification-report
+ http://example.com/extref/quality-metrics
+ http://example.com/extref/codified-infrastructure
+ http://example.com/extref/poam
+ http://example.com/extref/electronic-signature
+ http://example.com/extref/digital-signature
+ http://example.com/extref/rfc-9116
+ http://example.com/extref/other
+
+
diff --git a/tests/_data/schemaTestData/1.6/valid-formulation-1.6.json b/tests/_data/schemaTestData/1.6/valid-formulation-1.6.json
index 9169d9ca0..26a9a4b68 100644
--- a/tests/_data/schemaTestData/1.6/valid-formulation-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-formulation-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-license-expression-1.6.json b/tests/_data/schemaTestData/1.6/valid-license-expression-1.6.json
index 057ad915f..380554719 100644
--- a/tests/_data/schemaTestData/1.6/valid-license-expression-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-license-expression-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-license-id-1.6.json b/tests/_data/schemaTestData/1.6/valid-license-id-1.6.json
index 07ec492d7..76419c50d 100644
--- a/tests/_data/schemaTestData/1.6/valid-license-id-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-license-id-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-license-licensing-1.6.json b/tests/_data/schemaTestData/1.6/valid-license-licensing-1.6.json
index f3a8d3ade..613e38a02 100644
--- a/tests/_data/schemaTestData/1.6/valid-license-licensing-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-license-licensing-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-license-name-1.6.json b/tests/_data/schemaTestData/1.6/valid-license-name-1.6.json
index dab017196..9de0228e9 100644
--- a/tests/_data/schemaTestData/1.6/valid-license-name-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-license-name-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-machine-learning-1.6.json b/tests/_data/schemaTestData/1.6/valid-machine-learning-1.6.json
index 0aeef9be5..491385e9f 100644
--- a/tests/_data/schemaTestData/1.6/valid-machine-learning-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-machine-learning-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
@@ -89,4 +90,4 @@
}
}
]
-}
\ No newline at end of file
+}
diff --git a/tests/_data/schemaTestData/1.6/valid-machine-learning-considerations-env-1.6.json b/tests/_data/schemaTestData/1.6/valid-machine-learning-considerations-env-1.6.json
index a7a0dbf55..07637f754 100644
--- a/tests/_data/schemaTestData/1.6/valid-machine-learning-considerations-env-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-machine-learning-considerations-env-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:ed5c5ba0-2be6-4b58-ac29-01a7fd375123",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-author-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-author-1.6.json
index c63b7065c..196c0eca6 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-author-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-author-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-license-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-license-1.6.json
index 3ee6eebfe..4861f5ab9 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-license-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-license-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-lifecycle-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-lifecycle-1.6.json
index fb39301ac..275ba3dae 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-lifecycle-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-lifecycle-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-manufacture-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-manufacture-1.6.json
index bee885618..2c9b204a9 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-manufacture-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-manufacture-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-manufacturer-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-manufacturer-1.6.json
index 7fc82b90e..0b373b3be 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-manufacturer-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-manufacturer-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-supplier-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-supplier-1.6.json
index 42f981100..e212c7a12 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-supplier-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-supplier-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-timestamp-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-timestamp-1.6.json
index 902002110..90c8f4ced 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-timestamp-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-timestamp-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-tool-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-tool-1.6.json
index 42f18480c..9c7b8b586 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-tool-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-tool-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-metadata-tool-deprecated-1.6.json b/tests/_data/schemaTestData/1.6/valid-metadata-tool-deprecated-1.6.json
index 47c16bd97..485bdd11c 100644
--- a/tests/_data/schemaTestData/1.6/valid-metadata-tool-deprecated-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-metadata-tool-deprecated-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-minimal-viable-1.6.json b/tests/_data/schemaTestData/1.6/valid-minimal-viable-1.6.json
index 14bdababb..0ee56744f 100644
--- a/tests/_data/schemaTestData/1.6/valid-minimal-viable-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-minimal-viable-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-patch-1.6.json b/tests/_data/schemaTestData/1.6/valid-patch-1.6.json
index 56f3dec46..2bb68e50b 100644
--- a/tests/_data/schemaTestData/1.6/valid-patch-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-patch-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-properties-1.6.json b/tests/_data/schemaTestData/1.6/valid-properties-1.6.json
index 68c47f86f..ad62c6f98 100644
--- a/tests/_data/schemaTestData/1.6/valid-properties-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-properties-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-release-notes-1.6.json b/tests/_data/schemaTestData/1.6/valid-release-notes-1.6.json
index 759a710e2..46c5a7c3b 100644
--- a/tests/_data/schemaTestData/1.6/valid-release-notes-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-release-notes-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
@@ -8,6 +9,12 @@
"type": "library",
"name": "acme-example",
"version": "1.0.0",
+ "externalReferences": [
+ {
+ "type": "release-notes",
+ "url": "https://example.com/releases/1.0.0"
+ }
+ ],
"releaseNotes": {
"type": "major",
"title": "My new release",
diff --git a/tests/_data/schemaTestData/1.6/valid-release-notes-1.6.xml b/tests/_data/schemaTestData/1.6/valid-release-notes-1.6.xml
index f7ce16b08..b25986bc5 100644
--- a/tests/_data/schemaTestData/1.6/valid-release-notes-1.6.xml
+++ b/tests/_data/schemaTestData/1.6/valid-release-notes-1.6.xml
@@ -4,6 +4,11 @@
acme-example
1.0.0
+
+
+ https://example.com/releases/1.0.0
+
+
major
My new release
diff --git a/tests/_data/schemaTestData/1.6/valid-saasbom-1.6.json b/tests/_data/schemaTestData/1.6/valid-saasbom-1.6.json
index 20709de8d..157e742f2 100644
--- a/tests/_data/schemaTestData/1.6/valid-saasbom-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-saasbom-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
@@ -300,4 +301,4 @@
"dependsOn": [ "s3-example.amazon.com" ]
}
]
-}
\ No newline at end of file
+}
diff --git a/tests/_data/schemaTestData/1.6/valid-service-1.6.json b/tests/_data/schemaTestData/1.6/valid-service-1.6.json
index e48157b70..d86841798 100644
--- a/tests/_data/schemaTestData/1.6/valid-service-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-service-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-service-empty-objects-1.6.json b/tests/_data/schemaTestData/1.6/valid-service-empty-objects-1.6.json
index d77ba2dcb..7338836de 100644
--- a/tests/_data/schemaTestData/1.6/valid-service-empty-objects-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-service-empty-objects-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-signatures-1.6.json b/tests/_data/schemaTestData/1.6/valid-signatures-1.6.json
index b5630f6da..5542c90ef 100644
--- a/tests/_data/schemaTestData/1.6/valid-signatures-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-signatures-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-standard-1.6.json b/tests/_data/schemaTestData/1.6/valid-standard-1.6.json
index ad6b4bab5..3150227b6 100644
--- a/tests/_data/schemaTestData/1.6/valid-standard-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-standard-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
@@ -21,6 +22,11 @@
"bom-ref": "requirement-1.1",
"identifier": "v1.1",
"title": "Title here",
+ "text": "Text here",
+ "descriptions": [
+ "Requirement is described here",
+ "and here"
+ ],
"parent": "requirement-1"
},
{
@@ -70,4 +76,4 @@
}
]
}
-}
\ No newline at end of file
+}
diff --git a/tests/_data/schemaTestData/1.6/valid-standard-1.6.xml b/tests/_data/schemaTestData/1.6/valid-standard-1.6.xml
index 7a36430ad..cdf5c037e 100644
--- a/tests/_data/schemaTestData/1.6/valid-standard-1.6.xml
+++ b/tests/_data/schemaTestData/1.6/valid-standard-1.6.xml
@@ -15,6 +15,11 @@
v1.1
Title here
+ Text here
+
+ Requirement is described here
+ and here
+
requirement-1
diff --git a/tests/_data/schemaTestData/1.6/valid-tags-1.6.json b/tests/_data/schemaTestData/1.6/valid-tags-1.6.json
index 0a4b286cb..1052997b9 100644
--- a/tests/_data/schemaTestData/1.6/valid-tags-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-tags-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
diff --git a/tests/_data/schemaTestData/1.6/valid-vulnerability-1.6.json b/tests/_data/schemaTestData/1.6/valid-vulnerability-1.6.json
index c0f77d363..52bb70f13 100644
--- a/tests/_data/schemaTestData/1.6/valid-vulnerability-1.6.json
+++ b/tests/_data/schemaTestData/1.6/valid-vulnerability-1.6.json
@@ -1,4 +1,5 @@
{
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",