package
0.2.2-schahriar
Repository: https://github.com/schahriar/kin-openapi.git
Documentation: pkg.go.dev

# Functions

FileBodyDecoder is a body decoder that decodes a file body to a string.
NewRouter creates a new router.
RegisterBodyDecoder registers a request body's decoder for a content type.
TrimJSONPrefix trims one of the possible prefixes.
UnregisterBodyDecoder dissociates a body decoder from a content type.
ValidateParameter validates a parameter's value by JSON schema.
No description provided by the author
ValidateRequestBody validates data of a request's body.
No description provided by the author
ValidateSecurityRequirements validates a multiple OpenAPI 3 security requirements.

# Constants

KindInvalidFormat describes an error that happens when a value does not conform a format that is required by a serialization method.
KindOther describes an untyped parsing error.
KindUnsupportedFormat describes an error that happens when a value has an unsupported format.

# Variables

No description provided by the author
No description provided by the author
ErrInvalidRequired is an error that happens when a required value of a parameter or request's body is not defined.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
ParseError describes errors which happens while parse operation's parameters, requestBody, or response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Router maps a HTTP request to an OpenAPI operation.
No description provided by the author

# Type aliases

BodyDecoder is an interface to decode a body of a request or response.
This function takes a parameter definition from the swagger spec, and the value which we received for it.
EncodingFn is a function that returns an encoding of a request body's part.
ParseErrorKind describes a kind of ParseError.
Routers maps a HTTP request to a Router.