51 lines
1016 B
JSON
51 lines
1016 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "sha256:",
|
|
"title": "CIC core metadata container",
|
|
|
|
"type": "object",
|
|
"properties": {
|
|
"targets": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"pattern": "^(0x)?[a-fA-F0-9]{40}"
|
|
}
|
|
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "/mime"
|
|
}
|
|
}
|
|
},
|
|
"required": ["targets", "attachments"],
|
|
"jsonmime": {
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "/mime",
|
|
"title": "A single generic attachment for documenting any asset",
|
|
|
|
"type": "object",
|
|
"properties": {
|
|
"contentType": {
|
|
"type": "string",
|
|
"$comment": "valid mime type"
|
|
},
|
|
"contentTransferEncoding": {
|
|
"type": "string",
|
|
"enum": ["BASE64", "QUOTED-PRINTABLE", "8BIT", "7BIT"]
|
|
},
|
|
"subject": {
|
|
"type": "string",
|
|
"$comment": "utf-8"
|
|
},
|
|
"body": {
|
|
"type": "string",
|
|
"$comment": "uri including dataurl"
|
|
}
|
|
},
|
|
"required": ["contentType", "body", "subject"]
|
|
}
|
|
}
|