TenantAtlas/specs/047-inventory-foundations-nodes/contracts/inventory-coverage.schema.json
2026-01-10 20:59:16 +01:00

34 lines
948 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://tenantpilot.local/contracts/inventory-coverage.schema.json",
"title": "Inventory Coverage View Model",
"type": "object",
"additionalProperties": false,
"properties": {
"supportedPolicyTypes": {
"type": "array",
"items": { "$ref": "#/$defs/typeMeta" }
},
"foundationTypes": {
"type": "array",
"items": { "$ref": "#/$defs/typeMeta" }
}
},
"required": ["supportedPolicyTypes", "foundationTypes"],
"$defs": {
"typeMeta": {
"type": "object",
"additionalProperties": true,
"properties": {
"type": { "type": "string" },
"label": { "type": "string" },
"category": { "type": "string" },
"platform": { "type": "string" },
"restore": { "type": "string" },
"risk": { "type": "string" }
},
"required": ["type", "label", "category"]
}
}
}