validation

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 18 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL