Versions in this module Expand all Collapse all v0 v0.5.0 Oct 8, 2022 Changes in this version + var FalseSchema = &Schema + var TrueSchema = &Schema + var Version = "https://json-schema.org/draft/2020-12/schema" + func ExtractGoComments(base, path string, commentMap map[string]string) error + func ToSnakeCase(str string) string + type Definitions map[string]*Schema + type ID string + const EmptyID + func (id ID) Add(path string) ID + func (id ID) Anchor(name string) ID + func (id ID) Base() ID + func (id ID) Def(name string) ID + func (id ID) String() string + func (id ID) Validate() error + type Reflector struct + AdditionalFields func(reflect.Type) []reflect.StructField + AllowAdditionalProperties bool + Anonymous bool + AssignAnchor bool + BaseSchemaID ID + CommentMap map[string]string + DoNotReference bool + ExpandedStruct bool + IgnoredTypes []interface{} + KeyNamer func(string) string + Lookup func(reflect.Type) ID + Mapper func(reflect.Type) *Schema + Namer func(reflect.Type) string + RequiredFromJSONSchemaTags bool + func (r *Reflector) AddGoComments(base, path string) error + func (r *Reflector) Reflect(v interface{}) *Schema + func (r *Reflector) ReflectFromType(t reflect.Type) *Schema + func (r *Reflector) SetBaseSchemaID(id string) + type Schema struct + AdditionalProperties *Schema + AllOf []*Schema + Anchor string + AnyOf []*Schema + Comments string + Const interface{} + Contains *Schema + ContentEncoding string + ContentMediaType string + ContentSchema *Schema + Default interface{} + Definitions Definitions + DependentRequired map[string][]string + DependentSchemas map[string]*Schema + Deprecated bool + Description string + DynamicRef string + Else *Schema + Enum []interface{} + Examples []interface{} + ExclusiveMaximum bool + ExclusiveMinimum bool + Extras map[string]interface{} + Format string + ID ID + If *Schema + Items *Schema + MaxContains uint + MaxItems int + MaxLength int + MaxProperties int + Maximum int + MinContains uint + MinItems int + MinLength int + MinProperties int + Minimum int + MultipleOf int + Not *Schema + OneOf []*Schema + Pattern string + PatternProperties map[string]*Schema + PrefixItems []*Schema + Properties *orderedmap.OrderedMap + PropertyNames *Schema + ReadOnly bool + Ref string + Required []string + Then *Schema + Title string + Type string + UniqueItems bool + Version string + WriteOnly bool + func Reflect(v interface{}) *Schema + func ReflectFromType(t reflect.Type) *Schema + func (t *Schema) MarshalJSON() ([]byte, error) + func (t *Schema) UnmarshalJSON(data []byte) error