{ "$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" }, "ref": { "type": "string", "format": "uri" } }, "required": ["contentType", "subject"], "oneOf": [ { "required": ["body"] }, { "required": ["ref"] } ] }