Round 2 candidate 7a585aa9606863a0d44a26094b585160914e3d8fd5f13436b56470cd69e6d867
(Rocko, packet fafee2f22), approved by Filbert in comment 28707.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
71 lines
1.3 KiB
JSON
71 lines
1.3 KiB
JSON
{
|
|
"$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"
|
|
]
|
|
}
|
|
}
|
|
}
|