{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "What a file is, from its sniffed content type.",
"oneOf": [
{
"const": "image",
"description": "A raster image (`image/*` from the magic table, or SVG).",
"type": "string"
},
{
"const": "video",
"description": "A video.",
"type": "string"
},
{
"const": "audio",
"description": "Audio.",
"type": "string"
},
{
"const": "document",
"description": "A document: PDF, text, office formats.",
"type": "string"
},
{
"const": "archive",
"description": "An archive: zip, gzip, 7z, rar.",
"type": "string"
},
{
"const": "other",
"description": "Anything else.",
"type": "string"
}
],
"title": "FileKind"
}