summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/issue.json
blob: a55ecaa5697471c845cce7b6936ed8f57234cc66 (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
{
  "type": "object",
  "required" : [
    "iid",
    "title",
    "confidential"
  ],
  "properties" : {
    "id": { "type": "integer" },
    "iid": { "type": "integer" },
    "project_id": { "type": ["integer", "null"] },
    "title": { "type": "string" },
    "confidential": { "type": "boolean" },
    "due_date": { "type": ["date", "null"] },
    "relative_position": { "type": "integer" },
    "project": {
      "id": { "type": "integer" },
      "path": { "type": "string" }
    },
    "labels": {
      "type": "array",
      "items": { "$ref": "entities/label.json" }
    },
    "assignee": {
      "id": { "type": "integet" },
      "name": { "type": "string" },
      "username": { "type": "string" },
      "avatar_url": { "type": "uri" }
    },
    "assignees": {
      "type": "array",
      "items": {
        "type": ["object", "null"],
        "required": [
          "id",
          "name",
          "username",
          "avatar_url"
        ],
        "properties": {
          "id": { "type": "integer" },
          "name": { "type": "string" },
          "username": { "type": "string" },
          "avatar_url": { "type": "uri" }
        }
      }
    },
    "subscribed": { "type": ["boolean", "null"] }
  },
  "additionalProperties": false
}