Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAPI ¶
type OpenAPI struct {
// contains filtered or unexported fields
}
func NewOpenAPI ¶
func NewOpenAPI(opts *OpenAPIOptions) *OpenAPI
func (*OpenAPI) ValidateRequest ¶
func (v *OpenAPI) ValidateRequest(req *http.Request) (*openapi3filter.RequestValidationInput, error)
func (*OpenAPI) ValidateResponse ¶
func (v *OpenAPI) ValidateResponse(beresp *http.Response, requestValidationInput *openapi3filter.RequestValidationInput) error
type OpenAPIContext ¶
type OpenAPIContext struct {
// contains filtered or unexported fields
}
func NewWithContext ¶
func NewWithContext(ctx context.Context) (context.Context, *OpenAPIContext)
func (*OpenAPIContext) Errors ¶
func (o *OpenAPIContext) Errors() []string
type OpenAPIOptions ¶
type OpenAPIOptions struct {
// contains filtered or unexported fields
}
func NewOpenAPIOptions ¶
func NewOpenAPIOptions(openapi *config.OpenAPI) (*OpenAPIOptions, error)
NewOpenAPIOptions takes a list of openAPI configuration due to merging configurations. The last item will be set and no attributes gets merged.
func NewOpenAPIOptionsFromBytes ¶
func NewOpenAPIOptionsFromBytes(openapi *config.OpenAPI, bytes []byte) (*OpenAPIOptions, error)
Click to show internal directories.
Click to hide internal directories.