# Functions
GetMiddleware creates & returns a firetail middleware.
# Structs
ErrorAppspecInvalid is used at initialisation/startup when the OpenAPI appspec file is malformed.
ErrorAtRequestUnspecified is used to wrap errors that are returned at request time, but aren't able to be broken down into more useful information.
ErrorAuthNoMatchingSchema is used when a request doesn't satisfy any of the securitySchemes corresponding to the route that the request matched in the OpenAPI spec.
ErrorAuthSchemaNotImplemented is used when a request is made to a path that has a security scheme requirement that has not been implemented in the application.
InvalidConfiguration is used by middleware constructors if the configuration they are provided is invalid for some reason.
ErrorRequestBodyInvalid is used when the body of a request doesn't conform to the schema in the OpenAPI spec.
ErrorRequestHeadersInvalid is used when the Content-Type header of a request doesn't conform to the schema in the OpenAPI spec.
ErrorRequestHeadersInvalid is used when any of the headers of a request don't conform to the schema in the OpenAPI spec, except for the Content-Type header for which an ErrorRequestContentTypeInvalid is used.
ErrorRequestPathParamsInvalid is used when the path params of a request don't conform to the schema in the OpenAPI spec.
ErrorRequestQueryParamsInvalid is used when the query params of a request don't conform to the schema in the OpenAPI spec.
ErrorResponseHeadersInvalid is used when the body of a response doesn't conform to the schema in the OpenAPI spec.
ErrorResponseHeadersInvalid is used when any of the headers of a response don't conform to the schema in the OpenAPI spec Currently not implemented as the underlying kin-openapi module doesn't perform response header validation.
ErrorResponseStatusCodeInvalid is used when the status code of a response doesn't conform to the schema in the OpenAPI spec.
ErrorRouteNotFound is used when a request is made for which no corresponding route in the OpenAPI spec could be found.
ErrorUnsupportedMethod is used when a request is made which corresponds to a route in the OpenAPI spec, but that route doesn't support the HTTP method with which the request was made.
Options is an options struct used when creating a Firetail middleware (GetMiddleware).
# Interfaces
ErrorAtRequest is an interface that extends the standard error interface for errors that occur during the handling of a request.