Files
stack/packages/project/schemas/decision.schema.json
jason.woltjeandClaude Opus 5.5 686fc1cb6d project: records layout, init, check and writer (row 147, #1641)
Round 2 candidate 7a585aa9606863a0d44a26094b585160914e3d8fd5f13436b56470cd69e6d867
(Rocko, packet fafee2f22), approved by Filbert in comment 28707.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 19:10:52 -05:00

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"
]
}
}
}