summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/list.json
blob: 8d94cf26ecbc9b9805b055520d09702727cbc48f (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
29
30
31
32
33
34
35
36
37
38
39
{
  "type": "object",
  "required" : [
    "id",
    "list_type",
    "title",
    "position"
  ],
  "properties" : {
    "id": { "type": "integer" },
    "list_type": {
      "type": "string",
      "enum": ["backlog", "label", "done"]
    },
    "label": {
      "type": ["object", "null"],
      "required": [
        "id",
        "color",
        "description",
        "title",
        "priority"
      ],
      "properties": {
        "id": { "type": "integer" },
        "color": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{3}{1,2}+$"
        },
        "description": { "type": ["string", "null"] },
        "title": { "type": "string" },
        "priority": { "type": ["integer", "null"] }
      }
    },
    "title": { "type": "string" },
    "position": { "type": ["integer", "null"] }
  },
  "additionalProperties": false
}