cic-schema/cic.in.json

43 lines
724 B
JSON
Raw Normal View History

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