diff options
author | stevegt <stevegt@t7a.org> | 2018-06-02 08:20:28 -0700 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-06-02 18:20:28 +0300 |
commit | a5f63fc4d1a6b65be22efdb68a45873a31a08ae0 (patch) | |
tree | 4d2e3267e37be1d07788261cbba06892b3c8b8b3 /routers | |
parent | b8c1dc55b42d928bebb70ccd3b172140b124a45f (diff) | |
download | gitea-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 'routers')
-rw-r--r-- | routers/api/v1/org/org.go | 1 | ||||
-rw-r--r-- | routers/api/v1/user/watch.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index c24a4aeb10..29d45d2f2e 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -51,6 +51,7 @@ func ListUserOrgs(ctx *context.APIContext) { // in: path // description: username of user // type: string + // required: true // responses: // "200": // "$ref": "#/responses/OrganizationList" diff --git a/routers/api/v1/user/watch.go b/routers/api/v1/user/watch.go index af7b9b4cca..2971bf6869 100644 --- a/routers/api/v1/user/watch.go +++ b/routers/api/v1/user/watch.go @@ -43,6 +43,7 @@ func GetWatchedRepos(ctx *context.APIContext) { // type: string // in: path // description: username of the user + // required: true // responses: // "200": // "$ref": "#/responses/RepositoryList" |