Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CustomGenerators = &customSchema{ mapSchema: make(map[string]CustomGenerator), }
Functions ¶
func GetFieldName ¶
func GetFieldName(fieldType reflect.StructField) (string, bool)
func GetNameAndRequiredFlag ¶
func GetNameAndRequiredFlag(field reflect.StructField) (string, bool)
func SetProperties ¶
func SetProperties(field reflect.StructField, s *jsonschema.Schema)
Types ¶
type CustomGenerator ¶
type CustomGenerator func(field reflect.StructField, s *jsonschema.Schema)
type Generator ¶
type Generator struct {
Reflector *jsonschema.Reflector
}
func NewGenerator ¶
func NewGenerator() *Generator
type Schema ¶
type Schema *jsonschema.Schema
Click to show internal directories.
Click to hide internal directories.