aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorstevegt <stevegt@t7a.org>2018-06-02 08:20:28 -0700
committerLauris BH <lauris@nix.lv>2018-06-02 18:20:28 +0300
commita5f63fc4d1a6b65be22efdb68a45873a31a08ae0 (patch)
tree4d2e3267e37be1d07788261cbba06892b3c8b8b3 /public
parentb8c1dc55b42d928bebb70ccd3b172140b124a45f (diff)
downloadgitea-a5f63fc4d1a6b65be22efdb68a45873a31a08ae0.tar.gz
gitea-a5f63fc4d1a6b65be22efdb68a45873a31a08ae0.zip
swagger: add 'required: true' for params in URL (#4097)
* Partial fix for #4010 Swagger validation needs 'required: true' for parameters that are in the URL path. Signed-off-by: Steve Traugott <stevegt@t7a.org>
Diffstat (limited to 'public')
-rw-r--r--public/swagger.v1.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json
index 6595d96f00..2c263ef1f7 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -5005,7 +5005,8 @@
"type": "string",
"description": "username of user",
"name": "username",
- "in": "path"
+ "in": "path",
+ "required": true
}
],
"responses": {
@@ -5279,7 +5280,8 @@
"type": "string",
"description": "username of the user",
"name": "username",
- "in": "path"
+ "in": "path",
+ "required": true
}
],
"responses": {