43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://toolctrl.local/ui-inventory.schema.json",
|
|
"title": "Toolctrl UI Inventory",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["schemaVersion", "notes", "components"],
|
|
"properties": {
|
|
"schemaVersion": {
|
|
"type": "integer",
|
|
"const": 1
|
|
},
|
|
"notes": {
|
|
"type": "array",
|
|
"items": { "type": "string" }
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": { "$ref": "#/$defs/component" }
|
|
}
|
|
},
|
|
"$defs": {
|
|
"component": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["stableName", "path", "category", "library", "status"],
|
|
"properties": {
|
|
"stableName": { "type": "string", "minLength": 1 },
|
|
"path": { "type": "string", "minLength": 1 },
|
|
"category": {
|
|
"type": "string",
|
|
"enum": ["navigation", "layout", "buttons", "dialogs", "tables", "inputs", "feedback"]
|
|
},
|
|
"library": { "type": "string", "minLength": 1 },
|
|
"status": {
|
|
"type": "string",
|
|
"enum": ["core", "available", "legacy", "plugin", "candidate-for-adapter"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|