cic-schema/cic.in.json

43 lines
724 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "CIC core metadata container",
"$id": "/cic/core",
"type": "object",
"properties": {
"version": {
"type": "integer"
},
"validFrom": {
"type": "string",
"format": "date-time"
},
"validUntil": {
"type": "string",
"format": "date-time"
},
"targets": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(0x)?[a-fA-F0-9]{40}"
}
},
"txs": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(0x)?[a-fA-F0-9]{64}"
}
},
"attachments": {
"type": "array",
"items": {
"$ref": "/mime"
}
}
},
"required": ["targets", "attachments", "txs", "validFrom"]
}