mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
fix: removed quotation marks from enum in swagger docs (#1539)
Signed-off-by: Lisca Ana-Roberta <ana.kagome@yahoo.com>
This commit is contained in:
parent
d30d7a9330
commit
aab149610f
4 changed files with 7 additions and 7 deletions
|
@ -49,7 +49,7 @@ func SetupUserPreferencesRoutes(config *config.Config, router *mux.Router, store
|
|||
// @Router /v2/_zot/ext/userprefs [put]
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param action query string true "specify action" Enums("toggleBookmark", "toggleStar")
|
||||
// @Param action query string true "specify action" Enums(toggleBookmark, toggleStar)
|
||||
// @Param repo query string true "repository name"
|
||||
// @Success 200 {string} string "ok"
|
||||
// @Failure 404 {string} string "not found"
|
||||
|
|
|
@ -180,8 +180,8 @@ const docTemplate = `{
|
|||
"parameters": [
|
||||
{
|
||||
"enum": [
|
||||
"\"toggleBookmark\"",
|
||||
"\"toggleStar\""
|
||||
"toggleBookmark",
|
||||
"toggleStar"
|
||||
],
|
||||
"type": "string",
|
||||
"description": "specify action",
|
||||
|
|
|
@ -171,8 +171,8 @@
|
|||
"parameters": [
|
||||
{
|
||||
"enum": [
|
||||
"\"toggleBookmark\"",
|
||||
"\"toggleStar\""
|
||||
"toggleBookmark",
|
||||
"toggleStar"
|
||||
],
|
||||
"type": "string",
|
||||
"description": "specify action",
|
||||
|
|
|
@ -311,8 +311,8 @@ paths:
|
|||
parameters:
|
||||
- description: specify action
|
||||
enum:
|
||||
- '"toggleBookmark"'
|
||||
- '"toggleStar"'
|
||||
- toggleBookmark
|
||||
- toggleStar
|
||||
in: query
|
||||
name: action
|
||||
required: true
|
||||
|
|
Loading…
Reference in a new issue