1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-25 19:58:36 +00:00

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
This commit is contained in:
zeripath
2018-10-21 04:40:42 +01:00
committed by techknowlogick
parent 9b2fcadeef
commit 43f9233914
23 changed files with 298 additions and 66 deletions

View File

@@ -70,6 +70,7 @@ func GetMilestone(ctx *context.APIContext) {
// in: path
// description: id of the milestone
// type: integer
// format: int64
// required: true
// responses:
// "200":
@@ -156,6 +157,7 @@ func EditMilestone(ctx *context.APIContext, form api.EditMilestoneOption) {
// in: path
// description: id of the milestone
// type: integer
// format: int64
// required: true
// - name: body
// in: body
@@ -211,6 +213,7 @@ func DeleteMilestone(ctx *context.APIContext) {
// in: path
// description: id of the milestone to delete
// type: integer
// format: int64
// required: true
// responses:
// "204":