summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/public_api/v4/issues.json
blob: bd6bfc03199e64a646f7f21e59232ba604324ea7 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
  "type": "array",
  "items": {
    "type": "object",
    "properties" : {
      "id": { "type": "integer" },
      "iid": { "type": "integer" },
      "project_id": { "type": "integer" },
      "title": { "type": "string" },
      "description": { "type": ["string", "null"] },
      "state": { "type": "string" },
      "created_at": { "type": "date" },
      "updated_at": { "type": "date" },
      "labels": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "milestone": {
        "type": "object",
        "properties": {
          "id": { "type": "integer" },
          "iid": { "type": "integer" },
          "project_id": { "type": ["integer", "null"] },
          "group_id": { "type": ["integer", "null"] },
          "title": { "type": "string" },
          "description": { "type": ["string", "null"] },
          "state": { "type": "string" },
          "created_at": { "type": "date" },
          "updated_at": { "type": "date" },
          "due_date": { "type": "date" },
          "start_date": { "type": "date" }
        },
        "additionalProperties": false
      },
      "assignees": {
        "type": "array",
        "items": {
          "type": ["object", "null"],
          "properties": {
            "name": { "type": "string" },
            "username": { "type": "string" },
            "id": { "type": "integer" },
            "state": { "type": "string" },
            "avatar_url": { "type": "uri" },
            "web_url": { "type": "uri" }
          },
          "additionalProperties": false
        }
      },
      "assignee": {
        "type": ["object", "null"],
        "properties": {
          "name": { "type": "string" },
          "username": { "type": "string" },
          "id": { "type": "integer" },
          "state": { "type": "string" },
          "avatar_url": { "type": "uri" },
          "web_url": { "type": "uri" }
        },
        "additionalProperties": false
      },
      "author": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "username": { "type": "string" },
          "id": { "type": "integer" },
          "state": { "type": "string" },
          "avatar_url": { "type": "uri" },
          "web_url": { "type": "uri" }
        },
        "additionalProperties": false
      },
      "user_notes_count": { "type": "integer" },
      "upvotes": { "type": "integer" },
      "downvotes": { "type": "integer" },
      "due_date": { "type": ["date", "null"] },
      "confidential": { "type": "boolean" },
      "web_url": { "type": "uri" }
    },
    "required": [
      "id", "iid", "project_id", "title", "description",
      "state", "created_at", "updated_at", "labels",
      "milestone", "assignees", "author", "user_notes_count",
      "upvotes", "downvotes", "due_date", "confidential",
      "web_url"
    ],
    "additionalProperties": false
  }
}