Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAPIValidator ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) Body ¶
Body reads the request body and validates it against the OpenAPI spec The body is closed after reading. Returns a ValidationError if the body is invalid that should be marshalled and returned to the client. The second return value is a boolean that is true if the body is valid.
Click to show internal directories.
Click to hide internal directories.