debian-mirror-gitlab/spec/fixtures/api/schemas/public_api/v4/issue.json
2023-03-05 14:24:40 +05:30

311 lines
No EOL
5.4 KiB
JSON

{
"type": "object",
"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"
},
"labels": {
"type": "array",
"items": {
"type": "string"
}
},
"milestone": {
"type": [
"object",
"null"
],
"properties": {
"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"
}
},
"additionalProperties": false
},
"assignees": {
"type": "array",
"items": {
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"id": {
"type": "integer"
},
"state": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"web_url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"assignee": {
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"id": {
"type": "integer"
},
"state": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"web_url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
},
"author": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"id": {
"type": "integer"
},
"state": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"web_url": {
"type": "string",
"format": "uri"
}
},
"required": [
"id",
"state",
"avatar_url",
"name",
"username",
"web_url"
]
},
"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"
]
},
"time_stats": {
"time_estimate": {
"type": "integer"
},
"total_time_spent": {
"type": "integer"
},
"human_time_estimate": {
"type": [
"string",
"null"
]
},
"human_total_time_spent": {
"type": [
"string",
"null"
]
}
},
"references": {
"short": {
"type": "string"
},
"relative": {
"type": "string"
},
"full": {
"type": "string"
}
}
},
"required": [
"id",
"iid",
"project_id",
"title",
"description",
"state",
"created_at",
"updated_at",
"labels",
"milestone",
"assignees",
"author",
"user_notes_count",
"upvotes",
"downvotes",
"due_date",
"confidential",
"web_url"
]
}