24 lines
469 B
JSON
24 lines
469 B
JSON
{
|
|
"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
|
|
}
|