{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "mosaic:project-layout:1:decision", "type": "object", "additionalProperties": false, "required": [ "recordVersion", "id", "question", "options", "recommendation", "status", "choice" ], "properties": { "recordVersion": { "const": 1 }, "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" }, "question": { "type": "string", "minLength": 1, "maxLength": 262144 }, "options": { "type": "array", "minItems": 2, "maxItems": 9, "items": { "type": "object", "additionalProperties": false, "required": [ "key", "text" ], "properties": { "key": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" }, "text": { "type": "string", "minLength": 1, "maxLength": 4096 } } } }, "recommendation": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" }, "status": { "enum": [ "open", "accepted", "rejected" ] }, "choice": { "type": [ "string", "null" ] } } }