2018-03-17 18:26:18 +05:30
|
|
|
{
|
|
|
|
"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"] },
|
2021-06-08 01:23:25 +05:30
|
|
|
"closed_at": { "type": ["string", "null"] },
|
|
|
|
"created_at": { "type": "string", "format": "date-time" },
|
|
|
|
"updated_at": { "type": "string", "format": "date-time" },
|
2018-03-17 18:26:18 +05:30
|
|
|
"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" },
|
2021-06-08 01:23:25 +05:30
|
|
|
"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" }
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
|
|
|
"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" }
|
|
|
|
},
|
2020-05-24 23:13:21 +05:30
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"state",
|
|
|
|
"avatar_url",
|
|
|
|
"name",
|
|
|
|
"username",
|
|
|
|
"web_url"
|
|
|
|
]
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
|
|
|
"user_notes_count": { "type": "integer" },
|
|
|
|
"upvotes": { "type": "integer" },
|
|
|
|
"downvotes": { "type": "integer" },
|
2021-06-08 01:23:25 +05:30
|
|
|
"due_date": { "type": ["string", "null"] },
|
2018-03-17 18:26:18 +05:30
|
|
|
"confidential": { "type": "boolean" },
|
|
|
|
"web_url": { "type": "uri" },
|
2022-06-21 17:19:12 +05:30
|
|
|
"severity": { "type": "string", "enum": ["UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL"] },
|
2018-03-17 18:26:18 +05:30
|
|
|
"time_stats": {
|
|
|
|
"time_estimate": { "type": "integer" },
|
|
|
|
"total_time_spent": { "type": "integer" },
|
|
|
|
"human_time_estimate": { "type": ["string", "null"] },
|
|
|
|
"human_total_time_spent": { "type": ["string", "null"] }
|
2020-03-13 15:44:24 +05:30
|
|
|
},
|
|
|
|
"references": {
|
|
|
|
"short": {"type": "string"},
|
|
|
|
"relative": {"type": "string"},
|
|
|
|
"full": {"type": "string"}
|
2018-03-17 18:26:18 +05:30
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|