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>
This commit is contained in:
parent
b8c1dc55b4
commit
a5f63fc4d1
3 changed files with 6 additions and 2 deletions
|
@ -51,6 +51,7 @@ func ListUserOrgs(ctx *context.APIContext) {
|
|||
// in: path
|
||||
// description: username of user
|
||||
// type: string
|
||||
// required: true
|
||||
// responses:
|
||||
// "200":
|
||||
// "$ref": "#/responses/OrganizationList"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue