gitlab-org--gitlab-foss/spec/fixtures/api/schemas/entities/issue_sidebar.json

48 lines
1.5 KiB
JSON
Raw Normal View History

2017-10-31 12:15:03 -04:00
{
"type": "object",
"properties" : {
"id": { "type": "integer" },
2018-11-29 22:16:40 -05:00
"type": { "type": "string" },
"author_id": { "type": "integer" },
"project_id": { "type": "integer" },
"discussion_locked": { "type": ["boolean", "null"] },
"due_date": { "type": "date" },
"confidential": { "type": "boolean" },
"reference": { "type": "string" },
"current_user": {
2018-11-29 23:03:35 -05:00
"allOf": [
{ "$ref": "../public_api/v4/user/basic.json" },
{ "type": "object",
"properties" : {
"todo": { "$ref": "issuable_sidebar_todo.json" },
"can_edit": { "type": "boolean" },
"can_move": { "type": "boolean" },
"can_admin_label": { "type": "boolean" }
}
}
2018-11-29 22:16:40 -05:00
]
2017-10-31 12:15:03 -04:00
},
2018-11-29 22:16:40 -05:00
"milestone": {
"oneOf": [
{ "type": "null" },
{ "$ref": "../public_api/v4/milestone.json" }
]
},
"labels": {
2017-10-31 12:15:03 -04:00
"type": "array",
2018-11-29 22:16:40 -05:00
"items": { "$ref": "label.json" }
},
"issuable_json_path": { "type": "string" },
"namespace_path": { "type": "string" },
"project_path": { "type": "string" },
"project_full_path": { "type": "string" },
"project_issuables_path": { "type": "string" },
"create_todo_path": { "type": "string" },
"project_milestones_path": { "type": "string" },
"project_labels_path": { "type": "string" },
"toggle_subscription_path": { "type": "string" },
"move_issue_path": { "type": "string" },
"projects_autocomplete_path": { "type": "string" }
}
2017-10-31 12:15:03 -04:00
}