|
| 1 | +{ |
| 2 | + "$id": "https://clairproject.org/api/http/v1/distribution.schema.json", |
| 3 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 4 | + "title": "Distribution", |
| 5 | + "type": "object", |
| 6 | + "description": "Distribution is the accompanying system context of a Package.", |
| 7 | + "properties": { |
| 8 | + "id": { |
| 9 | + "description": "Unique ID for this Distribution. May be unique to the response document, not the whole system.", |
| 10 | + "type": "string" |
| 11 | + }, |
| 12 | + "did": { |
| 13 | + "description": "A lower-case string (no spaces or other characters outside of 0–9, a–z, \".\", \"_\", and \"-\") identifying the operating system, excluding any version information and suitable for processing by scripts or usage in generated filenames.", |
| 14 | + "type": "string" |
| 15 | + }, |
| 16 | + "name": { |
| 17 | + "description": "A string identifying the operating system.", |
| 18 | + "type": "string" |
| 19 | + }, |
| 20 | + "version": { |
| 21 | + "description": "A string identifying the operating system version, excluding any OS name information, possibly including a release code name, and suitable for presentation to the user.", |
| 22 | + "type": "string" |
| 23 | + }, |
| 24 | + "version_code_name": { |
| 25 | + "description": "A lower-case string (no spaces or other characters outside of 0–9, a–z, \".\", \"_\", and \"-\") identifying the operating system release code name, excluding any OS name information or release version, and suitable for processing by scripts or usage in generated filenames.", |
| 26 | + "type": "string" |
| 27 | + }, |
| 28 | + "version_id": { |
| 29 | + "description": "A lower-case string (mostly numeric, no spaces or other characters outside of 0–9, a–z, \".\", \"_\", and \"-\") identifying the operating system version, excluding any OS name information or release code name.", |
| 30 | + "type": "string" |
| 31 | + }, |
| 32 | + "arch": { |
| 33 | + "description": "A string identifying the OS architecture.", |
| 34 | + "type": "string" |
| 35 | + }, |
| 36 | + "cpe": { |
| 37 | + "description": "Common Platform Enumeration name.", |
| 38 | + "$ref": "cpe.schema.json" |
| 39 | + }, |
| 40 | + "pretty_name": { |
| 41 | + "description": "A pretty operating system name in a format suitable for presentation to the user.", |
| 42 | + "type": "string" |
| 43 | + } |
| 44 | + }, |
| 45 | + "additionalProperties": false, |
| 46 | + "required": [ |
| 47 | + "id" |
| 48 | + ] |
| 49 | +} |
0 commit comments