forked from CycloneDX/specification
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
draft: JSON - extraneous comp and version range
related to CycloneDX#321 CycloneDX#321 Signed-off-by: Jan Kowalleck <[email protected]>
- Loading branch information
1 parent
6dac012
commit 68f3340
Showing
7 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tools/src/test/resources/1.6/invalid-component-version-and-range.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", | ||
"version": 1, | ||
"components": [ | ||
{ | ||
"type": "library", | ||
"name": "InvalidVersions", | ||
"description": "may have `version` or `versionRange`, not both. This one does - it is invalid", | ||
"version": "9.0.14", | ||
"versionRange": ">=9.0.0|<10.0.0" | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
tools/src/test/resources/1.6/invalid-component-versionRange-non-extraneous-explicit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", | ||
"version": 1, | ||
"components": [ | ||
{ | ||
"type": "library", | ||
"name": "InvalidVersions", | ||
"description": "versionRange may only exist on extraneous components, set `isExtraneous` explicit", | ||
"isExtraneous": false, | ||
"versionRange": ">=9.0.0|<10.0.0" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
tools/src/test/resources/1.6/invalid-component-versionRange-non-extraneous-implicit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", | ||
"version": 1, | ||
"components": [ | ||
{ | ||
"type": "library", | ||
"name": "InvalidVersions", | ||
"description": "versionRange may only exist on extraneous components, set `isExtraneous` implicit by default value", | ||
"versionRange": ">=9.0.0|<10.0.0" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
tools/src/test/resources/1.6/valid-component-extraneous-no-version-information.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", | ||
"version": 1, | ||
"components": [ | ||
{ | ||
"type": "library", | ||
"name": "Foo", | ||
"description": "extraneous without any version constraints", | ||
"isExtraneous": true | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
tools/src/test/resources/1.6/valid-component-extraneous-with-version.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", | ||
"version": 1, | ||
"components": [ | ||
{ | ||
"type": "library", | ||
"name": "Foo", | ||
"description": "extraneous with version constraint", | ||
"isExtraneous": true, | ||
"version": "9.1.24" | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
tools/src/test/resources/1.6/valid-component-extraneous-with-versionRange.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", | ||
"version": 1, | ||
"components": [ | ||
{ | ||
"type": "library", | ||
"name": "Foo", | ||
"description": "extraneous with version range constraints", | ||
"isExtraneous": true, | ||
"versionRange": ">=9.0.0|<10.0.0" | ||
} | ||
] | ||
} |