Documentation
¶
Index ¶
- func Connect(r router, path string, handler *nethttp.Handler)
- func Delete(r router, path string, handler *nethttp.Handler)
- func Get(r router, path string, handler *nethttp.Handler)
- func Head(r router, path string, handler *nethttp.Handler)
- func MustCheckNonNullArrays(definitionMap map[string]openapi3.SchemaOrRef)
- func MustCreateOpenapiEndpoint[Req any, Resp any](title string, opts *HandlerOptions, handler OpenapiHandlerFunc[Req, Resp]) *nethttp.Handler
- func MustNotHaveDuplicateOperationIDOrUnknownSecurity(spec *openapi3.Spec)
- func Options(r router, path string, handler *nethttp.Handler)
- func Patch(r router, path string, handler *nethttp.Handler)
- func Post(r router, path string, handler *nethttp.Handler)
- func Put(r router, path string, handler *nethttp.Handler)
- func Trace(r router, path string, handler *nethttp.Handler)
- type HandlerOptions
- type HandlerSecurity
- type OpenapiHandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustCheckNonNullArrays ¶
func MustCheckNonNullArrays(definitionMap map[string]openapi3.SchemaOrRef)
MustCheckNonNullArrays enforces non-null arrays across the whole of your schema. Use if desired on your particular schema; this isn't suitable for all schemas.
func MustCreateOpenapiEndpoint ¶
func MustCreateOpenapiEndpoint[Req any, Resp any](title string, opts *HandlerOptions, handler OpenapiHandlerFunc[Req, Resp]) *nethttp.Handler
MustCreateOpenapiEndpoint creates an openapi endpoint. It panics on error.
Types ¶
type HandlerOptions ¶
type HandlerOptions struct { Tags []string Security *HandlerSecurity }
type HandlerSecurity ¶
Click to show internal directories.
Click to hide internal directories.