From aab149610faac1341f6ad52082edf1060b513904 Mon Sep 17 00:00:00 2001 From: Lisca Ana-Roberta <55219463+aokirisaki@users.noreply.github.com> Date: Tue, 20 Jun 2023 15:32:19 +0300 Subject: [PATCH] fix: removed quotation marks from enum in swagger docs (#1539) Signed-off-by: Lisca Ana-Roberta --- pkg/extensions/extension_userprefs.go | 2 +- swagger/docs.go | 4 ++-- swagger/swagger.json | 4 ++-- swagger/swagger.yaml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/extensions/extension_userprefs.go b/pkg/extensions/extension_userprefs.go index 124c95e7..0a9404ec 100644 --- a/pkg/extensions/extension_userprefs.go +++ b/pkg/extensions/extension_userprefs.go @@ -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" diff --git a/swagger/docs.go b/swagger/docs.go index c1457659..672a42a4 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -180,8 +180,8 @@ const docTemplate = `{ "parameters": [ { "enum": [ - "\"toggleBookmark\"", - "\"toggleStar\"" + "toggleBookmark", + "toggleStar" ], "type": "string", "description": "specify action", diff --git a/swagger/swagger.json b/swagger/swagger.json index 41d3b0b1..c24fa253 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -171,8 +171,8 @@ "parameters": [ { "enum": [ - "\"toggleBookmark\"", - "\"toggleStar\"" + "toggleBookmark", + "toggleStar" ], "type": "string", "description": "specify action", diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 32e9d4d8..0226e71d 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -311,8 +311,8 @@ paths: parameters: - description: specify action enum: - - '"toggleBookmark"' - - '"toggleStar"' + - toggleBookmark + - toggleStar in: query name: action required: true