debian-mirror-gitlab/spec/fixtures/api/schemas/public_api/v4/issue.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

311 lines
5.4 KiB
JSON
Raw Normal View History

2018-03-17 18:26:18 +05:30
{
"type": "object",
2023-03-04 22:38:38 +05:30
"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"
]
},
"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": {
2023-03-04 22:38:38 +05:30
"type": [
"object",
"null"
],
2018-03-17 18:26:18 +05:30
"properties": {
2023-03-04 22:38:38 +05:30
"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"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"due_date": {
"type": [
"string",
"null"
],
"anyOf": [
{
"format": "date-time"
},
{
"format": "date"
}
]
},
"start_date": {
"type": [
"string",
"null"
],
"anyOf": [
{
"format": "date-time"
},
{
"format": "date"
}
]
},
"expired": {
"type": "boolean"
},
"web_url": {
"type": "string",
"format": "uri"
}
2018-03-17 18:26:18 +05:30
},
"additionalProperties": false
},
"assignees": {
"type": "array",
"items": {
2023-03-04 22:38:38 +05:30
"type": [
"object",
"null"
],
2018-03-17 18:26:18 +05:30
"properties": {
2023-03-04 22:38:38 +05:30
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"id": {
"type": "integer"
},
"state": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"web_url": {
"type": "string",
"format": "uri"
}
2018-03-17 18:26:18 +05:30
},
"additionalProperties": false
}
},
"assignee": {
2023-03-04 22:38:38 +05:30
"type": [
"object",
"null"
],
2018-03-17 18:26:18 +05:30
"properties": {
2023-03-04 22:38:38 +05:30
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"id": {
"type": "integer"
},
"state": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"web_url": {
"type": "string",
"format": "uri"
}
2018-03-17 18:26:18 +05:30
},
"additionalProperties": false
},
"author": {
"type": "object",
"properties": {
2023-03-04 22:38:38 +05:30
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"id": {
"type": "integer"
},
"state": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"web_url": {
"type": "string",
"format": "uri"
}
2018-03-17 18:26:18 +05:30
},
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
},
2023-03-04 22:38:38 +05:30
"user_notes_count": {
"type": "integer"
},
"upvotes": {
"type": "integer"
},
"downvotes": {
"type": "integer"
},
"due_date": {
"type": [
"string",
"null"
]
},
"confidential": {
"type": "boolean"
},
"web_url": {
"type": "string",
"format": "uri"
},
"severity": {
"type": "string",
"enum": [
"UNKNOWN",
"LOW",
"MEDIUM",
"HIGH",
"CRITICAL"
]
},
2018-03-17 18:26:18 +05:30
"time_stats": {
2023-03-04 22:38:38 +05:30
"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": {
2023-03-04 22:38:38 +05:30
"short": {
"type": "string"
},
"relative": {
"type": "string"
},
"full": {
"type": "string"
}
2018-03-17 18:26:18 +05:30
}
},
"required": [
2023-03-04 22:38:38 +05:30
"id",
"iid",
"project_id",
"title",
"description",
"state",
"created_at",
"updated_at",
"labels",
"milestone",
"assignees",
"author",
"user_notes_count",
"upvotes",
"downvotes",
"due_date",
"confidential",
2018-03-17 18:26:18 +05:30
"web_url"
]
2023-03-04 22:38:38 +05:30
}