Skip to content

Commit

Permalink
Schema
Browse files Browse the repository at this point in the history
- addresses parts of oasis-tcs#616
- add `$schema` to PMD JSON schema
- adapt examples to reflect schema change
  • Loading branch information
tschmidtb51 committed Aug 26, 2024
1 parent 4a90eeb commit ae7f752
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://docs.oasis-open.org/csaf/csaf/v2.1/provider_json_schema.json",
"canonical_url": "https://www.example.com/.well-known/csaf/provider-metadata.json",
"distributions": [
{
Expand Down Expand Up @@ -29,4 +30,4 @@
"namespace": "https://psirt.example.com"
},
"role": "csaf_trusted_provider"
}
}
10 changes: 10 additions & 0 deletions csaf_2.1/json_schema/provider_json_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
}
},
"required": [
"$schema",
"canonical_url",
"last_updated",
"list_on_CSAF_aggregators",
Expand All @@ -36,6 +37,15 @@
"role"
],
"properties": {
"$schema": {
"title": "JSON schema",
"description": "Contains the URL of the provider-metadata.json JSON schema which the document promises to be valid for.",
"type": "string",
"enum": [
"https://docs.oasis-open.org/csaf/csaf/v2.1/provider_json_schema.json"
],
"format": "uri"
},
"canonical_url": {
"title": "Canonical URL",
"description": "Contains the URL for this document.",
Expand Down

0 comments on commit ae7f752

Please sign in to comment.