debian-mirror-gitlab/spec/fixtures/api/schemas/issue.json
2023-03-04 22:38:38 +05:30

132 lines
No EOL
2.1 KiB
JSON

{
"type": "object",
"required": [
"iid",
"title",
"confidential"
],
"properties": {
"id": {
"type": "integer"
},
"iid": {
"type": "integer"
},
"project_id": {
"type": [
"integer",
"null"
]
},
"title": {
"type": "string"
},
"confidential": {
"type": "boolean"
},
"due_date": {
"type": [
"string",
"null"
]
},
"relative_position": {
"type": [
"integer",
"null"
]
},
"time_estimate": {
"type": "integer"
},
"type": {
"type": "string",
"enum": [
"ISSUE",
"INCIDENT",
"TEST_CASE",
"REQUIREMENT"
]
},
"issue_sidebar_endpoint": {
"type": "string"
},
"toggle_subscription_endpoint": {
"type": "string"
},
"assignable_labels_endpoint": {
"type": "string"
},
"reference_path": {
"type": "string"
},
"real_path": {
"type": "string"
},
"project": {
"id": {
"type": "integer"
},
"path": {
"type": "string"
}
},
"labels": {
"type": "array",
"items": {
"$ref": "entities/label.json"
}
},
"assignee": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "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": "string",
"format": "uri"
}
}
}
},
"subscribed": {
"type": [
"boolean",
"null"
]
}
}
}