From 86ec77e818aff9969638e9b816c259e712e62a14 Mon Sep 17 00:00:00 2001 From: fredbi <14262513+fredbi@users.noreply.github.com> Date: Mon, 27 Jul 2026 09:29:38 +0000 Subject: [PATCH] chore: regenerate examples from go-swagger@master Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- authentication/restapi/configure_auth_sample.go | 2 -- generated/restapi/configure_petstore.go | 2 -- task-tracker/restapi/configure_task_tracker.go | 2 -- todo-list-strict/restapi/configure_simple_to_do_list_api.go | 2 -- 4 files changed, 8 deletions(-) diff --git a/authentication/restapi/configure_auth_sample.go b/authentication/restapi/configure_auth_sample.go index 2312659b..9825b8e8 100644 --- a/authentication/restapi/configure_auth_sample.go +++ b/authentication/restapi/configure_auth_sample.go @@ -41,7 +41,6 @@ func configureAPI(api *operations.AuthSampleAPI) http.Handler { api.JSONProducer = runtime.JSONProducer() // Applies when the "x-token" header is set - // snippet:keyauth if api.KeyAuth == nil { api.KeyAuth = func(token string) (*models.Principal, error) { _ = token @@ -49,7 +48,6 @@ func configureAPI(api *operations.AuthSampleAPI) http.Handler { return nil, errors.NotImplemented("api key auth (key) x-token from header param [x-token] has not yet been implemented") } } - // endsnippet:keyauth // Set your custom authorizer if needed. Default one is security.Authorized() // Expected interface runtime.Authorizer diff --git a/generated/restapi/configure_petstore.go b/generated/restapi/configure_petstore.go index feafef81..751e1461 100644 --- a/generated/restapi/configure_petstore.go +++ b/generated/restapi/configure_petstore.go @@ -44,7 +44,6 @@ func configureAPI(api *operations.PetstoreAPI) http.Handler { api.JSONProducer = runtime.JSONProducer() api.XMLProducer = runtime.XMLProducer() - // snippet:auth // Applies when the "api_key" header is set if api.APIKeyAuth == nil { api.APIKeyAuth = func(token string) (any, error) { @@ -61,7 +60,6 @@ func configureAPI(api *operations.PetstoreAPI) http.Handler { return nil, errors.NotImplemented("oauth2 bearer auth (petstore_auth) has not yet been implemented") } } - // endsnippet:auth // Set your custom authorizer if needed. Default one is security.Authorized() // Expected interface runtime.Authorizer diff --git a/task-tracker/restapi/configure_task_tracker.go b/task-tracker/restapi/configure_task_tracker.go index c923e484..4304c759 100644 --- a/task-tracker/restapi/configure_task_tracker.go +++ b/task-tracker/restapi/configure_task_tracker.go @@ -40,7 +40,6 @@ func configureAPI(api *operations.TaskTrackerAPI) http.Handler { api.JSONProducer = runtime.JSONProducer() - // snippet:auth // Applies when the "token" query is set if api.APIKeyAuth == nil { api.APIKeyAuth = func(token string) (any, error) { @@ -57,7 +56,6 @@ func configureAPI(api *operations.TaskTrackerAPI) http.Handler { return nil, errors.NotImplemented("api key auth (token_header) X-Token from header param [X-Token] has not yet been implemented") } } - // endsnippet:auth // Set your custom authorizer if needed. Default one is security.Authorized() // Expected interface runtime.Authorizer diff --git a/todo-list-strict/restapi/configure_simple_to_do_list_api.go b/todo-list-strict/restapi/configure_simple_to_do_list_api.go index 3a63c014..52c6cefa 100644 --- a/todo-list-strict/restapi/configure_simple_to_do_list_api.go +++ b/todo-list-strict/restapi/configure_simple_to_do_list_api.go @@ -55,7 +55,6 @@ func configureAPI(api *operations.SimpleToDoListAPIAPI) http.Handler { // You may change here the memory limit for this multipart form parser. Below is the default (32 MB). // todos.FindMaxParseMemory = 32 << 20 - // snippet:strict-handler if api.TodosAddOneHandler == nil { api.TodosAddOneHandler = todos.AddOneHandlerFunc(func(params todos.AddOneParams, principal any) todos.AddOneResponder { _ = params @@ -64,7 +63,6 @@ func configureAPI(api *operations.SimpleToDoListAPIAPI) http.Handler { return todos.AddOneNotImplemented() }) } - // endsnippet:strict-handler if api.TodosDestroyOneHandler == nil { api.TodosDestroyOneHandler = todos.DestroyOneHandlerFunc(func(params todos.DestroyOneParams, principal any) todos.DestroyOneResponder { _ = params