summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/repo.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2018-06-12 16:59:22 +0200
committerBo-Yi Wu <appleboy.tw@gmail.com>2018-06-12 22:59:22 +0800
commit908e8942ccae5b7966c7084780b3441e2190d9c1 (patch)
tree746fedd2cd4ba4608629f74b7f8a83a4adf48298 /routers/api/v1/repo/repo.go
parent0ba165e2ea451c67448d584822ce29ddf62a6c7c (diff)
downloadgitea-908e8942ccae5b7966c7084780b3441e2190d9c1.tar.gz
gitea-908e8942ccae5b7966c7084780b3441e2190d9c1.zip
Fix swagger errors (#4220)
Fix all the resting errors to have a valid swagger file. They are still some warnings but nothing blocking. Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely. Fix #4088 by activating validation in drone Should fix #4010.
Diffstat (limited to 'routers/api/v1/repo/repo.go')
-rw-r--r--routers/api/v1/repo/repo.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index 9f64dda61d..ccfe0440c8 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -508,13 +508,13 @@ func TopicSearch(ctx *context.Context) {
// ---
// summary: search topics via keyword
// produces:
- // - application/json
+ // - application/json
// parameters:
- // - name: keyword
- // in: path
- // description: id of the repo to get
- // type: integer
- // required: true
+ // - name: q
+ // in: query
+ // description: keywords to search
+ // required: true
+ // type: string
// responses:
// "200":
// "$ref": "#/responses/Repository"