1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{ "type": "object", "required": [ "id", "name", "color", "description", "text_color" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "color": { "type": "string", "pattern": "^#[0-9A-Fa-f]{3}{1,2}$" }, "description": { "type": ["string", "null"] }, "text_color": { "type": "string", "pattern": "^#[0-9A-Fa-f]{3}{1,2}$" } }, "additionalProperties": false }