Versions in this module Expand all Collapse all v0 v0.0.0 Jul 20, 2022 Changes in this version + func DefaultError(bc *BuildContext, typ interface{}) + type BuildContext struct + func MustBuildContext(docM DocModifier, r chi.Router) *BuildContext + func NewBuildContext(docM DocModifier, r chi.Router) (*BuildContext, error) + func (bc *BuildContext) BuildHandler(ctx context.Context) (http.Handler, error) + func (bc *BuildContext) BuildOpenAPIDoc(ctx context.Context) (*openapi3.T, error) + func (bc *BuildContext) Doc() *openapi3.T + func (bc *BuildContext) EmitDoc(ctx context.Context, w io.Writer) error + func (bc *BuildContext) ReflectOpenAPIManager() *reflectopenapi.Manager + func (bc *BuildContext) Router() chi.Router + type DocModifier func() *openapi3.T + func Doc() DocModifier + func (m DocModifier) After(f func(doc *openapi3.T)) DocModifier + func (m DocModifier) Server(url string, description string) DocModifier + func (m DocModifier) Title(title string) DocModifier + func (m DocModifier) Version(version string) DocModifier + type EndpointModifier reflectopenapi.RegisterFuncAction + func Delete(bc *BuildContext, path string, action quickapi.Action[I, O], ...) *EndpointModifier + func Get(bc *BuildContext, path string, action quickapi.Action[I, O], ...) *EndpointModifier + func Head(bc *BuildContext, path string, action quickapi.Action[I, O], ...) *EndpointModifier + func Method(bc *BuildContext, method, path string, action quickapi.Action[I, O], ...) *EndpointModifier + func Options(bc *BuildContext, path string, action quickapi.Action[I, O], ...) *EndpointModifier + func Patch(bc *BuildContext, path string, action quickapi.Action[I, O], ...) *EndpointModifier + func Post(bc *BuildContext, path string, action quickapi.Action[I, O], ...) *EndpointModifier + func Put(bc *BuildContext, path string, action quickapi.Action[I, O], ...) *EndpointModifier + func (a *EndpointModifier) Example(code int, title string, value interface{}) *EndpointModifier + func (m *EndpointModifier) After(f func(op *openapi3.Operation)) *EndpointModifier + func (m *EndpointModifier) AnotherError(bc *BuildContext, code int, typ interface{}, description string) *EndpointModifier + func (m *EndpointModifier) Description(description string) *EndpointModifier + func (m *EndpointModifier) Status(code int) *EndpointModifier + type TypeModifier reflectopenapi.RegisterTypeAction + func Enum(bc *BuildContext, defaultValue T, values ...T) *TypeModifier + func IntEnum(bc *BuildContext, defaultValue T, values ...T) *TypeModifier + func StringEnum(bc *BuildContext, defaultValue T, values ...T) *TypeModifier + func Type(bc *BuildContext, typ interface{}) *TypeModifier + func (a *TypeModifier) Example(value interface{}) *TypeModifier + func (m *TypeModifier) After(f func(ref *openapi3.SchemaRef)) *TypeModifier + func (m *TypeModifier) Before(f func(s *openapi3.Schema)) *TypeModifier