cic-schema/mime.in.json

39 lines
698 B
JSON
Raw Normal View History

2023-03-05 09:47:07 +01:00
{
"$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"
2023-03-05 12:18:41 +01:00
},
"ref": {
"type": "string",
"format": "uri"
2023-03-05 09:47:07 +01:00
}
},
2023-03-05 12:18:41 +01:00
"required": ["contentType", "subject"],
"oneOf": [
{
"required": ["body"]
},
{
"required": ["ref"]
}
]
2023-03-05 09:47:07 +01:00
}