From 3f67df25193449a828074eee23458937d19e321a Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 3 May 2018 15:33:07 +0200 Subject: [PATCH] Added swagger model definition for deadline response --- public/swagger.v1.json | 17 +++++++++++++++++ routers/api/v1/swagger/issue.go | 6 ++++++ 2 files changed, 23 insertions(+) diff --git a/public/swagger.v1.json b/public/swagger.v1.json index 0eca032b6..b639d3ffe 100644 --- a/public/swagger.v1.json +++ b/public/swagger.v1.json @@ -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", diff --git a/routers/api/v1/swagger/issue.go b/routers/api/v1/swagger/issue.go index 1ebb17b24..26f348bc2 100644 --- a/routers/api/v1/swagger/issue.go +++ b/routers/api/v1/swagger/issue.go @@ -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"` +}