aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/issue.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2018-10-21 04:40:42 +0100
committertechknowlogick <hello@techknowlogick.com>2018-10-20 23:40:42 -0400
commit43f92339146224872383d2507ac9487f4857536b (patch)
tree22ec9ebc82074a241e116feb7301c09422db099f /routers/api/v1/repo/issue.go
parent9b2fcadeef75d9e6256c0258d39751da71847d66 (diff)
downloadgitea-43f92339146224872383d2507ac9487f4857536b.tar.gz
gitea-43f92339146224872383d2507ac9487f4857536b.zip
Fix Swagger JSON autogeneration issues. (#4845)
* Fix Swagger JSON. Remove unnecessary schema references for the forbidden and empty responses Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix swagger API for CreateAccessToken * Fix admin create org swagger * Fix swagger for adminCreateRepo * More swagger fixes Set int64 format for those which are int64 Some more form fixes * Fix swagger description of GET /repos/{owner}/{repo}/pulls
Diffstat (limited to 'routers/api/v1/repo/issue.go')
-rw-r--r--routers/api/v1/repo/issue.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go
index 4b634c9ca6..cd78135a62 100644
--- a/routers/api/v1/repo/issue.go
+++ b/routers/api/v1/repo/issue.go
@@ -123,6 +123,7 @@ func GetIssue(ctx *context.APIContext) {
// in: path
// description: index of the issue to get
// type: integer
+ // format: int64
// required: true
// responses:
// "200":
@@ -254,6 +255,7 @@ func EditIssue(ctx *context.APIContext, form api.EditIssueOption) {
// in: path
// description: index of the issue to edit
// type: integer
+ // format: int64
// required: true
// - name: body
// in: body
@@ -377,6 +379,7 @@ func UpdateIssueDeadline(ctx *context.APIContext, form api.EditDeadlineOption) {
// in: path
// description: index of the issue to create or update a deadline on
// type: integer
+ // format: int64
// required: true
// - name: body
// in: body
@@ -387,12 +390,8 @@ func UpdateIssueDeadline(ctx *context.APIContext, form api.EditDeadlineOption) {
// "$ref": "#/responses/IssueDeadline"
// "403":
// description: Not repo writer
- // schema:
- // "$ref": "#/responses/forbidden"
// "404":
// description: Issue not found
- // schema:
- // "$ref": "#/responses/empty"
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
if err != nil {