Documentation ¶
Overview ¶
Package extractors GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- Variables
- func FieldShouldPick(t reflect.Type, fieldName string) bool
- func PatchSchemaValidation(s jsonschema.Schema, opt validator.Option) (jsonschema.Schema, error)
- func PatchSchemaValidationByValidator(s jsonschema.Schema, v validator.Validator) jsonschema.Schema
- func RegisterFieldFilter(t reflect.Type, fieldFilter FieldFilter)
- func SchemaFrom(ctx context.Context, v any, def bool) jsonschema.Schema
- func SchemaFromType(ctx context.Context, t reflect.Type, opt Opt) (s jsonschema.Schema)
- func SetTitleOrDescription(metadata *jsonschema.Metadata, lines []string)
- type FieldExclude
- type FieldFilter
- type Opt
- type RuntimeDocer
- type SchemaRegister
- type TypeName
Constants ¶
This section is empty.
Variables ¶
View Source
var RuntimeDocerContext = contextx.New[RuntimeDocer]()
View Source
var SchemaRegisterContext = contextx.New[SchemaRegister](contextx.WithDefaultsFunc(func() SchemaRegister {
return &defaultSchemaRegister{}
}))
Functions ¶
func PatchSchemaValidation ¶
func PatchSchemaValidation(s jsonschema.Schema, opt validator.Option) (jsonschema.Schema, error)
func PatchSchemaValidationByValidator ¶
func PatchSchemaValidationByValidator(s jsonschema.Schema, v validator.Validator) jsonschema.Schema
func RegisterFieldFilter ¶
func RegisterFieldFilter(t reflect.Type, fieldFilter FieldFilter)
func SchemaFrom ¶
func SchemaFromType ¶
func SetTitleOrDescription ¶
func SetTitleOrDescription(metadata *jsonschema.Metadata, lines []string)
Types ¶
type FieldExclude ¶
type FieldExclude func(fields ...string)
func (FieldExclude) RuntimeDoc ¶
func (FieldExclude) RuntimeDoc(names ...string) ([]string, bool)
type FieldFilter ¶
func (FieldFilter) RuntimeDoc ¶
func (v FieldFilter) RuntimeDoc(names ...string) ([]string, bool)
type Opt ¶
func (Opt) WithEnumInDoc ¶
type RuntimeDocer ¶
type SchemaRegister ¶
Click to show internal directories.
Click to hide internal directories.