mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-28 16:37:24 +02:00
core/zero: upgrade oapi-codegen (#4953)
This commit is contained in:
parent
6f6535e8d6
commit
9d0e727e4d
4 changed files with 10 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
// Package cluster provides primitives to interact with the openapi HTTP API.
|
// Package cluster provides primitives to interact with the openapi HTTP API.
|
||||||
//
|
//
|
||||||
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
|
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
|
||||||
package cluster
|
package cluster
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
package cluster
|
package cluster
|
||||||
|
|
||||||
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.0.0 --config=models.yaml openapi.yaml
|
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.1.0 --config=models.yaml openapi.yaml
|
||||||
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.0.0 --config=server.yaml openapi.yaml
|
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.1.0 --config=server.yaml openapi.yaml
|
||||||
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.0.0 --config=client.yaml openapi.yaml
|
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.1.0 --config=client.yaml openapi.yaml
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Package cluster provides primitives to interact with the openapi HTTP API.
|
// Package cluster provides primitives to interact with the openapi HTTP API.
|
||||||
//
|
//
|
||||||
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
|
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
|
||||||
package cluster
|
package cluster
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Package cluster provides primitives to interact with the openapi HTTP API.
|
// Package cluster provides primitives to interact with the openapi HTTP API.
|
||||||
//
|
//
|
||||||
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
|
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
|
||||||
package cluster
|
package cluster
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -114,7 +114,7 @@ func (siw *ServerInterfaceWrapper) DownloadClusterResourceBundle(w http.Response
|
||||||
// ------------- Path parameter "bundleId" -------------
|
// ------------- Path parameter "bundleId" -------------
|
||||||
var bundleId BundleId
|
var bundleId BundleId
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "bundleId", runtime.ParamLocationPath, chi.URLParam(r, "bundleId"), &bundleId)
|
err = runtime.BindStyledParameterWithOptions("simple", "bundleId", chi.URLParam(r, "bundleId"), &bundleId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "bundleId", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "bundleId", Err: err})
|
||||||
return
|
return
|
||||||
|
@ -142,7 +142,7 @@ func (siw *ServerInterfaceWrapper) ReportClusterResourceBundleStatus(w http.Resp
|
||||||
// ------------- Path parameter "bundleId" -------------
|
// ------------- Path parameter "bundleId" -------------
|
||||||
var bundleId BundleId
|
var bundleId BundleId
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "bundleId", runtime.ParamLocationPath, chi.URLParam(r, "bundleId"), &bundleId)
|
err = runtime.BindStyledParameterWithOptions("simple", "bundleId", chi.URLParam(r, "bundleId"), &bundleId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "bundleId", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "bundleId", Err: err})
|
||||||
return
|
return
|
||||||
|
@ -509,8 +509,8 @@ type StrictServerInterface interface {
|
||||||
ExchangeClusterIdentityToken(ctx context.Context, request ExchangeClusterIdentityTokenRequestObject) (ExchangeClusterIdentityTokenResponseObject, error)
|
ExchangeClusterIdentityToken(ctx context.Context, request ExchangeClusterIdentityTokenRequestObject) (ExchangeClusterIdentityTokenResponseObject, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type StrictHandlerFunc = strictnethttp.StrictHttpHandlerFunc
|
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
|
||||||
type StrictMiddlewareFunc = strictnethttp.StrictHttpMiddlewareFunc
|
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
|
||||||
|
|
||||||
type StrictHTTPServerOptions struct {
|
type StrictHTTPServerOptions struct {
|
||||||
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
|
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue