Files
cad-building-showcase/schemas/variants_manifest.schema.json

32 lines
1.0 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cad-building-showcase.local/schemas/variants-manifest-v1.json",
"title": "CAD Building Showcase variants manifest",
"type": "object",
"required": ["manifest_version", "name", "default_key", "variants"],
"properties": {
"manifest_version": {"const": 1},
"name": {"type": "string"},
"default_key": {"type": "string"},
"variants": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["key", "label", "file", "source_glb", "metadata", "spec"],
"properties": {
"key": {"type": "string", "minLength": 1},
"label": {"type": "string"},
"description": {"type": "string"},
"file": {"type": "string"},
"source_glb": {"type": "string"},
"metadata": {"type": "string"},
"spec": {"type": "string"}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}