Versions in this module Expand all Collapse all v0 v0.4.0 Sep 27, 2025 v0.3.0 Sep 27, 2025 Changes in this version + func ParseAnyTime(date string) time.Time + type ArrayScheme struct + Items *Schema + MaxItems *int + MinItems *int + TypeName string + func (s *ArrayScheme) SampleJSON() any + func (s *ArrayScheme) Type() string + func (s *ArrayScheme) Validate(buf []byte) bool + type Node struct + ArrayValue []*Node + BoolValue *bool + NumberValue *float64 + ObjectValue map[string]*Node + StringValue *string + Type string + type NumberScheme struct + Description string + ExclusiveMax *float64 + ExclusiveMin *float64 + Max *float64 + Min *float64 + MultipleOf *int + TypeName string + Value *float64 + func (s *NumberScheme) SampleJSON() any + func (s *NumberScheme) Type() string + func (s *NumberScheme) Validate(buf []byte) bool + type ObjectScheme struct + Order []string + Properties map[string]*Schema + Required []string + TypeName string + func (s *ObjectScheme) SampleJSON() any + func (s *ObjectScheme) Type() string + func (s *ObjectScheme) Validate(buf []byte) bool + type OneOfSchema struct + OneOf []*Schema + func (s *OneOfSchema) SampleJSON() any + func (s *OneOfSchema) Type() string + func (s *OneOfSchema) Validate(buf []byte) bool + type OneOrMore struct + More []*T + One *T + func (o *OneOrMore[T]) Do(f func(t *T) bool) bool + func (o *OneOrMore[T]) Iter() chan<- *T + func (o *OneOrMore[T]) MarshalJSON() ([]byte, error) + func (o *OneOrMore[T]) MarshalYAML() ([]byte, error) + func (o *OneOrMore[T]) UnmarshalJSON(data []byte) error + func (o *OneOrMore[T]) UnmarshalYAML(data []byte) error + type PathResolver func(path string) Validator + type RefScheme struct + Ref string + func (s *RefScheme) SampleJSON() any + func (s *RefScheme) Type() string + func (s *RefScheme) Validate(buf []byte) bool + type Regexp struct + Pattern string + func (o *Regexp) MarshalJSON() ([]byte, error) + func (o *Regexp) MarshalYAML() ([]byte, error) + func (o *Regexp) Regexp() *regexp.Regexp + func (o *Regexp) UnmarshalJSON(data []byte) (err error) + func (o *Regexp) UnmarshalYAML(data []byte) (err error) + type SampleGenerator interface + SampleJSON func() any + type Schema struct + Format string + This schemaNode + TypeName string + func NewSchema(buf []byte) (*Schema, error) + func SchemaFrom(v any) (*Schema, error) + func (s *Schema) MarshalJSON() ([]byte, error) + func (s *Schema) MarshalYAML() ([]byte, error) + func (s *Schema) Parse(pr PathResolver, buf []byte) (*Node, error) + func (s *Schema) SampleJSON() any + func (s *Schema) Type() string + func (s *Schema) UnmarshalJSON(data []byte) error + func (s *Schema) Validate(buf []byte) bool + func (s *Schema) ValidateNode(pr PathResolver, node *Node) bool + type StringScheme struct + Description string + MaxLength *int + MinLength *int + Pattern *string + TypeName string + Value *string + func (s *StringScheme) SampleJSON() any + func (s *StringScheme) Type() string + func (s *StringScheme) Validate(buf []byte) bool + type UnixTime struct + func (o *UnixTime) UnmarshalJSON(data []byte) error + func (o *UnixTime) UnmarshalYAML(data []byte) error + func (o UnixTime) MarshalJSON() ([]byte, error) + func (o UnixTime) MarshalYAML() ([]byte, error) + func (o UnixTime) Time() time.Time + type Validator interface + Type func() string + Validate func(buf []byte) bool v0.2.0 Jun 22, 2025 v0.1.0 Jun 22, 2025