2017-08-17 22:00:37 +05:30
|
|
|
{
|
|
|
|
"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" },
|
2018-12-13 13:39:08 +05:30
|
|
|
"merged_by": {
|
|
|
|
"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
|
|
|
|
},
|
|
|
|
"merged_at": { "type": ["date", "null"] },
|
|
|
|
"closed_by": {
|
|
|
|
"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
|
|
|
|
},
|
|
|
|
"closed_at": { "type": ["date", "null"] },
|
2017-08-17 22:00:37 +05:30
|
|
|
"created_at": { "type": "date" },
|
|
|
|
"updated_at": { "type": "date" },
|
|
|
|
"target_branch": { "type": "string" },
|
|
|
|
"source_branch": { "type": "string" },
|
|
|
|
"upvotes": { "type": "integer" },
|
|
|
|
"downvotes": { "type": "integer" },
|
|
|
|
"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
|
|
|
|
},
|
|
|
|
"assignee": {
|
2018-03-17 18:26:18 +05:30
|
|
|
"type": ["object", "null"],
|
2017-08-17 22:00:37 +05:30
|
|
|
"properties": {
|
|
|
|
"name": { "type": "string" },
|
|
|
|
"username": { "type": "string" },
|
|
|
|
"id": { "type": "integer" },
|
|
|
|
"state": { "type": "string" },
|
|
|
|
"avatar_url": { "type": "uri" },
|
|
|
|
"web_url": { "type": "uri" }
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
},
|
|
|
|
"source_project_id": { "type": "integer" },
|
|
|
|
"target_project_id": { "type": "integer" },
|
|
|
|
"labels": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"work_in_progress": { "type": "boolean" },
|
|
|
|
"milestone": {
|
|
|
|
"type": ["object", "null"],
|
|
|
|
"properties": {
|
|
|
|
"id": { "type": "integer" },
|
|
|
|
"iid": { "type": "integer" },
|
2017-09-10 17:25:29 +05:30
|
|
|
"project_id": { "type": ["integer", "null"] },
|
|
|
|
"group_id": { "type": ["integer", "null"] },
|
2017-08-17 22:00:37 +05:30
|
|
|
"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
|
|
|
|
},
|
|
|
|
"merge_when_pipeline_succeeds": { "type": "boolean" },
|
|
|
|
"merge_status": { "type": "string" },
|
|
|
|
"sha": { "type": "string" },
|
|
|
|
"merge_commit_sha": { "type": ["string", "null"] },
|
|
|
|
"user_notes_count": { "type": "integer" },
|
2018-03-17 18:26:18 +05:30
|
|
|
"changes_count": { "type": "string" },
|
2017-08-17 22:00:37 +05:30
|
|
|
"should_remove_source_branch": { "type": ["boolean", "null"] },
|
|
|
|
"force_remove_source_branch": { "type": ["boolean", "null"] },
|
2018-03-17 18:26:18 +05:30
|
|
|
"discussion_locked": { "type": ["boolean", "null"] },
|
|
|
|
"web_url": { "type": "uri" },
|
2018-11-08 19:23:39 +05:30
|
|
|
"squash": { "type": "boolean" },
|
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"] }
|
2018-03-27 19:54:05 +05:30
|
|
|
},
|
2018-11-08 19:23:39 +05:30
|
|
|
"allow_collaboration": { "type": ["boolean", "null"] },
|
2018-03-27 19:54:05 +05:30
|
|
|
"allow_maintainer_to_push": { "type": ["boolean", "null"] }
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id", "iid", "project_id", "title", "description",
|
|
|
|
"state", "created_at", "updated_at", "target_branch",
|
|
|
|
"source_branch", "upvotes", "downvotes", "author",
|
|
|
|
"assignee", "source_project_id", "target_project_id",
|
|
|
|
"labels", "work_in_progress", "milestone", "merge_when_pipeline_succeeds",
|
|
|
|
"merge_status", "sha", "merge_commit_sha", "user_notes_count",
|
|
|
|
"should_remove_source_branch", "force_remove_source_branch",
|
2018-11-08 19:23:39 +05:30
|
|
|
"web_url", "squash"
|
2017-08-17 22:00:37 +05:30
|
|
|
],
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
}
|