90 lines
1.8 KiB
JSON
90 lines
1.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"schema_version",
|
|
"revision",
|
|
"provenance",
|
|
"artifacts"
|
|
],
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": 1
|
|
},
|
|
"revision": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"provenance": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"publisher",
|
|
"version",
|
|
"source_url",
|
|
"signature_reference"
|
|
],
|
|
"properties": {
|
|
"publisher": {
|
|
"type": "string",
|
|
"maxLength": 4096
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"maxLength": 4096
|
|
},
|
|
"source_url": {
|
|
"type": "string",
|
|
"maxLength": 4096
|
|
},
|
|
"signature_reference": {
|
|
"type": "string",
|
|
"maxLength": 4096
|
|
}
|
|
}
|
|
},
|
|
"artifacts": {
|
|
"type": "array",
|
|
"maxItems": 64,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"path",
|
|
"kind",
|
|
"sha256",
|
|
"base64",
|
|
"source_id"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"maxLength": 512
|
|
},
|
|
"kind": {
|
|
"enum": [
|
|
"inventory",
|
|
"profile",
|
|
"checklist",
|
|
"source"
|
|
]
|
|
},
|
|
"sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-f0-9]{64}$"
|
|
},
|
|
"base64": {
|
|
"type": "string",
|
|
"maxLength": 65536
|
|
},
|
|
"source_id": {
|
|
"type": "string",
|
|
"maxLength": 4096
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|