insights.schema.json
schemas/insights.schema.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Weekly insights",
"type": "object",
"required": ["week_start", "insights"],
"properties": {
"week_start": { "type": "string", "format": "date" },
"insights": {
"type": "array",
"maxItems": 5,
"items": {
"type": "object",
"required": ["property_id", "what_changed", "why", "what_to_look_at", "evidence"],
"properties": {
"property_id": { "type": "string" },
"what_changed": { "type": "string" },
"why": { "type": "string" },
"what_to_look_at": { "type": "string" },
"evidence": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}