Files
popki/schemas/source.schema.json
T

93 lines
2.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "urn:ald-transition:source",
"type": "object",
"properties": {
"schema_version": {
"const": 1
},
"revision": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"sources": {
"type": "array",
"maxItems": 1000,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 4096
},
"url": {
"type": "string",
"maxLength": 4096,
"format": "uri"
},
"title": {
"type": "string",
"maxLength": 4096
},
"product_version": {
"type": [
"string",
"null"
],
"maxLength": 4096
},
"section": {
"type": "string",
"maxLength": 4096
},
"retrieved_at": {
"type": [
"string",
"null"
]
},
"artifact_sha256": {
"type": [
"string",
"null"
],
"pattern": "^[a-f0-9]{64}$"
},
"verification_state": {
"enum": [
"reviewed_web",
"not_retrieved",
"retrieval_failed",
"pending_original",
"verified_artifact"
]
},
"notes": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"id",
"url",
"title",
"product_version",
"section",
"retrieved_at",
"artifact_sha256",
"verification_state",
"notes"
],
"additionalProperties": false
}
}
},
"required": [
"schema_version",
"revision",
"sources"
],
"additionalProperties": false
}