0
Fork 0
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:
Lisca Ana-Roberta 2023-06-20 15:32:19 +03:00 committed by GitHub
parent d30d7a9330
commit aab149610f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -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"

View file

@ -180,8 +180,8 @@ const docTemplate = `{
"parameters": [
{
"enum": [
"\"toggleBookmark\"",
"\"toggleStar\""
"toggleBookmark",
"toggleStar"
],
"type": "string",
"description": "specify action",

View file

@ -171,8 +171,8 @@
"parameters": [
{
"enum": [
"\"toggleBookmark\"",
"\"toggleStar\""
"toggleBookmark",
"toggleStar"
],
"type": "string",
"description": "specify action",

View file

@ -311,8 +311,8 @@ paths:
parameters:
- description: specify action
enum:
- '"toggleBookmark"'
- '"toggleStar"'
- toggleBookmark
- toggleStar
in: query
name: action
required: true