Files
aventuriers-des-mots/data/schemas/rule.schema.json
T
2026-10-12 11:05:00 +02:00

23 lines
672 B
JSON

{
"type": "object",
"required": [
"rule_id",
"level",
"domain",
"skill",
"statement",
"example",
"review_status"
],
"additionalProperties": false,
"properties": {
"rule_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" },
"level": { "type": "string", "enum": ["CE1", "CE2", "CM1", "CM2"] },
"domain": { "type": "string", "enum": ["grammaire", "orthographe"] },
"skill": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" },
"statement": { "type": "string", "minLength": 1 },
"example": { "type": "string", "minLength": 1 },
"review_status": { "type": "string", "enum": ["draft", "validated"] }
}
}