]> source.dussan.org Git - gitea.git/commit
Fix Swagger JSON autogeneration issues. (#4845)
authorzeripath <art27@cantab.net>
Sun, 21 Oct 2018 03:40:42 +0000 (04:40 +0100)
committertechknowlogick <hello@techknowlogick.com>
Sun, 21 Oct 2018 03:40:42 +0000 (23:40 -0400)
commit43f92339146224872383d2507ac9487f4857536b
tree22ec9ebc82074a241e116feb7301c09422db099f
parent9b2fcadeef75d9e6256c0258d39751da71847d66
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
23 files changed:
routers/api/v1/admin/org.go
routers/api/v1/admin/repo.go
routers/api/v1/admin/user.go
routers/api/v1/org/hook.go
routers/api/v1/org/member.go
routers/api/v1/org/team.go
routers/api/v1/repo/hook.go
routers/api/v1/repo/issue.go
routers/api/v1/repo/issue_comment.go
routers/api/v1/repo/issue_label.go
routers/api/v1/repo/issue_tracked_time.go
routers/api/v1/repo/key.go
routers/api/v1/repo/label.go
routers/api/v1/repo/milestone.go
routers/api/v1/repo/pull.go
routers/api/v1/repo/release.go
routers/api/v1/repo/release_attachment.go
routers/api/v1/repo/repo.go
routers/api/v1/user/app.go
routers/api/v1/user/gpg_key.go
routers/api/v1/user/key.go
routers/api/v1/user/user.go
templates/swagger/v1_json.tmpl