Documentation ¶
Index ¶
- Variables
- func Connect[Res any, Err chai.ErrType](r chai.Methoder, path string, fn chai.ResHandlerFunc[Res, Err])
- func Delete[Req any, Res any, Err chai.ErrType](r chai.Methoder, path string, fn chai.ReqResHandlerFunc[Req, Res, Err])
- func Get[Res any, Err chai.ErrType](r chai.Methoder, path string, fn chai.ResHandlerFunc[Res, Err])
- func OpenAPI2(r chi.Routes) (*spec.Swagger, error)
- func OpenAPI3(r chi.Routes) (*kinopenapi3.T, error)
- func Options[Res any, Err chai.ErrType](r chai.Methoder, path string, fn chai.ResHandlerFunc[Res, Err])
- func ParsePathParams(path string) ([]spec.Parameter, string)
- func Patch[Req any, Res any, Err chai.ErrType](r chai.Methoder, path string, fn chai.ReqResHandlerFunc[Req, Res, Err])
- func Post[Req any, Res any, Err chai.ErrType](r chai.Methoder, path string, fn chai.ReqResHandlerFunc[Req, Res, Err])
- func Put[Req any, Res any, Err chai.ErrType](r chai.Methoder, path string, fn chai.ReqResHandlerFunc[Req, Res, Err])
Constants ¶
This section is empty.
Variables ¶
View Source
var RegexPatternSchemas = map[string]spec.SimpleSchema{
"/^(0|-*[1-9]+[0-9]*)$/": integerSchema,
"^[0-9]+$": integerSchema,
"[+-]?([0-9]*[.])?[0-9]+": numberSchema,
}
Functions ¶
func OpenAPI3 ¶
func OpenAPI3(r chi.Routes) (*kinopenapi3.T, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.