# Functions
APIModeValidateRequest validates request and respond with 200, 403 (with error) or 500 status code.
Contains returns true if v is present in the elems slice, false otherwise.
FileBodyDecoder is a body decoder that decodes a file body to a string.
No description provided by the author
ParseGraphQLRequest function parses the GraphQL request.
RegisterBodyDecoder registers a request body's decoder for a content type.
RegisterBodyDecoderSuffix registers a request body's decoder for a content type suffix.
No description provided by the author
RegisteredBodyDecoder returns the registered body decoder for the given content type.
RegisteredBodyEncoder returns the registered body encoder for the given content type.
UnmarshalGraphQLRequest function parse the JSON document and build graphql.Request.
UnregisterBodyDecoder dissociates a body decoder from a content type.
This call is not thread-safe: body encoders should not be created/destroyed by multiple goroutines.
ValidateGraphQLRequest validates the GraphQL request.
ValidateParameter validates a parameter's value by JSON schema.
ValidateRequest is used to validate the given input according to previous loaded OpenAPIv3 spec.
ValidateRequestBody validates data of a request's body.
ValidateResponse is used to validate the given input according to previous loaded OpenAPIv3 spec.
ValidateSecurityRequirements goes through multiple OpenAPI 3 security requirements in order and returns nil on the first valid requirement.
ValidateUnknownRequestParameters is used to get a list of request parameters that are not specified in the OpenAPI specification.
# 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
ErrAuthenticationServiceMissing is returned when no authentication service is defined for the request validator.
No description provided by the author
ErrDecodingFailed is returned when the API FW got error or unexpected value from the decoder.
No description provided by the author
No description provided by the author
ErrInvalidEmptyValue is returned when a value of a parameter or request body is empty while it's not allowed.
ErrInvalidRequired is returned when a required value of a parameter or request body is not defined.
No description provided by the author
ErrUnknownBodyParameter is returned when a body parameter not defined in the OpenAPI specification.
ErrUnknownQueryParameter is returned when a query parameter not defined in the OpenAPI specification.
No description provided by the author
# Structs
ParseError describes errors which happens while parse operation's parameters, requestBody, or response.
RequestParameterDetails contains details about found unknown parameter.
RequestUnknownParameterError is returned by ValidateRequest when request does not match OpenAPI spec.
No description provided by the author
# Type aliases
BodyDecoder is an interface to decode a body of a request or response.
No description provided by the author
EncodingFn is a function that returns an encoding of a request body's part.
ParseErrorKind describes a kind of ParseError.