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