summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/issue.json
blob: 28f11115428ec2264946bc97650a048dc940d9d3 (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
53
54
55
56
{
  "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" },
    "issue_sidebar_endpoint": { "type": "string" },
    "toggle_subscription_endpoint": { "type": "string" },
    "valid_labels_endpoint": { "type": "string" },
    "reference_path": { "type": "string" },
    "real_path": { "type": "string" },
    "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
}