summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/public_api/v4/label_basic.json
blob: a4653c67ed214d2ee522da633106387bbe352414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  "type": "object",
  "required": [
    "id",
    "name",
    "color",
    "description",
    "description_html",
    "text_color",
    "remove_on_close"
  ],
  "properties": {
    "id": { "type": "integer" },
    "name": { "type": "string" },
    "color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{3}{1,2}$"
    },
    "description": { "type": ["string", "null"] },
    "description_html": { "type": ["string", "null"] },
    "text_color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{3}{1,2}$"
    },
    "remove_on_close": { "type": "boolean" }
  },
  "additionalProperties": false
}