gitlab-org--gitlab-foss/spec/fixtures/api/schemas/issue.json

56 lines
1.4 KiB
JSON
Raw Normal View History

{
"type": "object",
"required" : [
"iid",
"title",
"confidential"
],
"properties" : {
"id": { "type": "integer" },
"iid": { "type": "integer" },
2017-08-31 14:18:35 -04:00
"project_id": { "type": ["integer", "null"] },
"title": { "type": "string" },
"confidential": { "type": "boolean" },
"due_date": { "type": ["date", "null"] },
2017-02-27 10:45:55 -05:00
"relative_position": { "type": "integer" },
"issue_sidebar_endpoint": { "type": "string" },
"toggle_subscription_endpoint": { "type": "string" },
2018-04-05 13:57:48 -04:00
"reference_path": { "type": "string" },
"real_path": { "type": "string" },
2017-08-31 14:18:35 -04:00
"project": {
"id": { "type": "integer" },
"path": { "type": "string" }
},
"labels": {
"type": "array",
2017-10-31 12:15:03 -04:00
"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" }
}
}
2016-10-07 04:24:57 -04:00
},
"subscribed": { "type": ["boolean", "null"] }
},
"additionalProperties": false
}