Documentation ¶
Overview ¶
package ginopenapivalidator is a middleware for gin that allows you validate request and responses
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(err error) (*openapi3filter.ValidationError, error)
Decode takes a Validation error and decodes back to a *openapi3filter.ValidationError
func Validator ¶
func Validator(doc []byte, options ...ValidatorOptions) gin.HandlerFunc
Validator returns a OpenAPI Validator middleware. It takes as argument doc where this is meant to be yaml byte array
Types ¶
type ValidatorOptions ¶
ValidatorOptions currently not used but we may use it in the future to add options.
Click to show internal directories.
Click to hide internal directories.