summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/issue.json
blob: 21c078e0f44ec0e1de82e260f6412180c5ba9a76 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  "type": "object",
  "required" : [
    "iid",
    "title",
    "confidential"
  ],
  "properties" : {
    "id": { "type": "integer" },
    "iid": { "type": "integer" },
    "title": { "type": "string" },
    "confidential": { "type": "boolean" },
    "due_date": { "type": ["date", "null"] },
    "relative_position": { "type": "integer" },
    "labels": {
      "type": "array",
      "items": {
        "type": "object",
        "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"] },
          "text_color": {
            "type": "string",
            "pattern": "^#[0-9A-Fa-f]{3}{1,2}+$"
          },
          "title": { "type": "string" },
          "priority": { "type": ["integer", "null"] }
        },
        "additionalProperties": false
      }
    },
    "assignee": {
      "id": { "type": "integet" },
      "name": { "type": "string" },
      "username": { "type": "string" },
      "avatar_url": { "type": "uri" }
    },
    "subscribed": { "type": ["boolean", "null"] }
  },
  "additionalProperties": false
}