Skip to content

Commit

Permalink
Merge pull request #107 from jkowalleck/issue106-json-schema-strict-s…
Browse files Browse the repository at this point in the history
…chema

JSON strict: add optional root property `$schema`
  • Loading branch information
stevespringett authored Dec 20, 2021
2 parents e308a7d + 36fcc24 commit f63f78b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions schema/bom-1.2-strict.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"enum": [
"http://cyclonedx.org/schema/bom-1.2a.schema.json"
]
},
"bomFormat": {
"$id": "#/properties/bomFormat",
"type": "string",
Expand Down
6 changes: 6 additions & 0 deletions schema/bom-1.3-strict.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"enum": [
"http://cyclonedx.org/schema/bom-1.3.schema.json"
]
},
"bomFormat": {
"$id": "#/properties/bomFormat",
"type": "string",
Expand Down

0 comments on commit f63f78b

Please sign in to comment.