Added swagger model definition for deadline response

This commit is contained in:
kolaente 2018-05-03 15:33:07 +02:00
parent 4a31c8a3aa
commit 3f67df2519
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 23 additions and 0 deletions

View File

@ -6556,6 +6556,18 @@
},
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
},
"IssueDeadline": {
"description": "IssueDeadline represents an issue deadline",
"type": "object",
"properties": {
"due_date": {
"type": "string",
"format": "date-time",
"x-go-name": "Deadline"
}
},
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
},
"IssueLabelsOption": {
"description": "IssueLabelsOption a collection of labels",
"type": "object",
@ -7533,6 +7545,11 @@
"$ref": "#/definitions/Issue"
}
},
"IssueDeadline": {
"schema": {
"$ref": "#/definitions/IssueDeadline"
}
},
"IssueList": {
"schema": {
"type": "array",

View File

@ -67,3 +67,9 @@ type swaggerResponseTrackedTimeList struct {
// in:body
Body []api.TrackedTime `json:"body"`
}
// swagger:response IssueDeadline
type swaggerIssueDeadline struct {
// in:body
Body api.IssueDeadline `json:"body"`
}