Skip to content

Commit

Permalink
BUILD/MINOR: swagger: upgrade to v0.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mjuraga committed Sep 26, 2024
1 parent 6f19045 commit 719b635
Show file tree
Hide file tree
Showing 55 changed files with 239 additions and 19 deletions.
10 changes: 5 additions & 5 deletions configure_data_plane.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import (
"github.com/haproxytech/dataplaneapi/operations"
"github.com/haproxytech/dataplaneapi/operations/discovery"
"github.com/haproxytech/dataplaneapi/operations/specification"
"github.com/haproxytech/dataplaneapi/operations/specification_openapiv3"
"github.com/haproxytech/dataplaneapi/operations/version3"
"github.com/haproxytech/dataplaneapi/rate"

// import various crypting algorithms
Expand Down Expand Up @@ -749,12 +749,12 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler { //nolint:cyclop,m
api.StorageReplaceStorageGeneralFileHandler = &handlers.StorageReplaceStorageGeneralFileHandlerImpl{Client: client, ReloadAgent: ra}

// setup OpenAPI v3 specification handler
api.SpecificationOpenapiv3GetOpenapiv3SpecificationHandler = specification_openapiv3.GetOpenapiv3SpecificationHandlerFunc(func(params specification_openapiv3.GetOpenapiv3SpecificationParams, principal interface{}) middleware.Responder {
api.Version3GetOpenapiv3SpecificationHandler = version3.GetOpenapiv3SpecificationHandlerFunc(func(params version3.GetOpenapiv3SpecificationParams, principal interface{}) middleware.Responder {
v2 := openapi2.T{}
err = v2.UnmarshalJSON(SwaggerJSON)
if err != nil {
e := misc.HandleError(err)
return specification_openapiv3.NewGetOpenapiv3SpecificationDefault(int(*e.Code)).WithPayload(e)
return version3.NewGetOpenapiv3SpecificationDefault(int(*e.Code)).WithPayload(e)
}

// if host is empty(dynamic hosts), server prop is empty,
Expand All @@ -768,9 +768,9 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler { //nolint:cyclop,m
v3, err = openapi2conv.ToV3(&v2)
if err != nil {
e := misc.HandleError(err)
return specification_openapiv3.NewGetOpenapiv3SpecificationDefault(int(*e.Code)).WithPayload(e)
return version3.NewGetOpenapiv3SpecificationDefault(int(*e.Code)).WithPayload(e)
}
return specification_openapiv3.NewGetOpenapiv3SpecificationOK().WithPayload(v3)
return version3.NewGetOpenapiv3SpecificationOK().WithPayload(v3)
})

// TODO: do we need a ReloadAgent for SPOE
Expand Down
5 changes: 5 additions & 0 deletions operations/acl/get_acl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/backend/get_backend.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/bind/get_bind.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/cache/get_cache.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions operations/data_plane_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/declare_capture/get_declare_capture.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/defaults/get_defaults.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/defaults/get_defaults_section.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/dgram_bind/get_dgram_bind.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/fcgi_app/get_fcgi_app.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/filter/get_filter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/frontend/get_frontend.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/global/get_global.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/group/get_group.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/http_check/get_http_check.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/http_error_rule/get_http_error_rule.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/http_errors/get_http_errors_section.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/http_request_rule/get_http_request_rule.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/http_response_rule/get_http_response_rule.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/log_forward/get_log_forward.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/log_target/get_log_target.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/mailer_entry/get_mailer_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions operations/mailers/get_mailers_section.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 719b635

Please sign in to comment.