package
0.2.0
Repository: https://github.com/rs/rest-layer.git
Documentation: pkg.go.dev

# Functions

NewEncoder returns a new JSONSchema Encoder that writes to w.
ValidatorBuilder type-casts v to a valid Builder implementation or returns an error.

# Variables

ErrKeysValidatorNotSupported is returned when Dict.KeysValidator is not a*schema.String instance or nil.
ErrNoSchema is returned when trying to JSON Encode a schema.Object withthe Schema property set to nil.
ErrNoSchemaList is returned when trying to JSON Encode an emptyschema.AnyOf or schema.AllOf slice.
ErrNotImplemented is returned when the JSON schema encoding logic for a schema.FieldValidator has not (yet) been implemented.

# Structs

Encoder writes the JSON Schema representation of a schema.Schema to an output stream.

# Interfaces

The Builder interface should be implemented by custom schema.FieldValidator implementations to allow JSON Schema serialization.