summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/public_api/v4/issue.json
blob: 90b368b52267b5ac64a60fb24905c69041dbe2c9 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
  "type": "object",
  "properties" : {
    "id": { "type": "integer" },
    "iid": { "type": "integer" },
    "project_id": { "type": "integer" },
    "title": { "type": "string" },
    "description": { "type": ["string", "null"] },
    "state": { "type": "string" },
    "discussion_locked": { "type": ["boolean", "null"] },
    "closed_at": { "type": ["string", "null"] },
    "created_at": { "type": "string", "format": "date-time" },
    "updated_at": { "type": "string", "format": "date-time" },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "milestone": {
      "type": ["object", "null"],
      "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": "string", "format": "date-time" },
        "updated_at": { "type": "string", "format": "date-time" },
        "due_date": { "type": "string"  , "format": "date-time" },
        "start_date": { "type": "string", "format": "date-time" }
      },
      "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" }
      },
      "required": [
        "id",
        "state",
        "avatar_url",
        "name",
        "username",
        "web_url"
      ]
    },
    "user_notes_count": { "type": "integer" },
    "upvotes": { "type": "integer" },
    "downvotes": { "type": "integer" },
    "due_date": { "type": ["string", "null"] },
    "confidential": { "type": "boolean" },
    "web_url": { "type": "uri" },
    "severity": { "type": "string", "enum": ["UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL"] },
    "time_stats": {
      "time_estimate": { "type": "integer" },
      "total_time_spent": { "type": "integer" },
      "human_time_estimate": { "type": ["string", "null"] },
      "human_total_time_spent": { "type": ["string", "null"] }
    },
    "references": {
      "short": {"type": "string"},
      "relative": {"type": "string"},
      "full": {"type": "string"}
    }
  },
  "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"
  ]
}