summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-06-27 22:32:28 +0200
committerGitHub <noreply@github.com>2020-06-27 16:32:28 -0400
commit1fd2beb6e974bb2d18204864f3f7a9d903200941 (patch)
treee5fd857d4779488a892e42e0c8347bd9f19744e6 /templates
parent2ff585f0dabb8c11178a976b9f3a6621e3451530 (diff)
downloadgitea-1fd2beb6e974bb2d18204864f3f7a9d903200941.tar.gz
gitea-1fd2beb6e974bb2d18204864f3f7a9d903200941.zip
Fix swagger docs for /repos/issues (#12069)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 1226822cc8..9290bfe079 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -3776,6 +3776,11 @@
"required": true
},
{
+ "enum": [
+ "closed",
+ "open",
+ "all"
+ ],
"type": "string",
"description": "whether issue is open or closed",
"name": "state",
@@ -3794,6 +3799,10 @@
"in": "query"
},
{
+ "enum": [
+ "issues",
+ "pulls"
+ ],
"type": "string",
"description": "filter by type (issues / pulls) if set",
"name": "type",