Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompiledCatalog ¶
type CompiledCatalog struct {
// contains filtered or unexported fields
}
CompiledCatalog contains all schemas compiled from one catalog hash.
type CompilerCache ¶
type CompilerCache struct {
// contains filtered or unexported fields
}
CompilerCache compiles and reuses immutable schema sets by catalog hash.
func NewCompilerCache ¶
func NewCompilerCache() *CompilerCache
func (*CompilerCache) Compile ¶
func (cache *CompilerCache) Compile(hash string, definitions []Definition) (*CompiledCatalog, error)
type Definition ¶
type Definition struct {
Key string
Schema json.RawMessage
}
Definition is one named JSON Schema in a catalog.
type ValidationError ¶
ValidationError identifies the schema and JSON Pointer that rejected a value.
func (*ValidationError) Error ¶
func (err *ValidationError) Error() string
func (*ValidationError) Unwrap ¶
func (err *ValidationError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.