diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-06-27 22:32:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 16:32:28 -0400 |
commit | 1fd2beb6e974bb2d18204864f3f7a9d903200941 (patch) | |
tree | e5fd857d4779488a892e42e0c8347bd9f19744e6 /routers/api | |
parent | 2ff585f0dabb8c11178a976b9f3a6621e3451530 (diff) | |
download | gitea-1fd2beb6e974bb2d18204864f3f7a9d903200941.tar.gz gitea-1fd2beb6e974bb2d18204864f3f7a9d903200941.zip |
Fix swagger docs for /repos/issues (#12069)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo/issue.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 937b581a6d..a064482498 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -198,6 +198,7 @@ func ListIssues(ctx *context.APIContext) { // in: query // description: whether issue is open or closed // type: string + // enum: [closed, open, all] // - name: labels // in: query // description: comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded @@ -210,6 +211,7 @@ func ListIssues(ctx *context.APIContext) { // in: query // description: filter by type (issues / pulls) if set // type: string + // enum: [issues, pulls] // - name: milestones // in: query // description: comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded |