Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationError ¶
ValidationError describes a schema validation failure.
func ValidateArgs ¶
func ValidateArgs(args json.RawMessage, schema json.RawMessage) []ValidationError
ValidateArgs validates JSON arguments against a JSON Schema definition. schema is a json.RawMessage containing a JSON Schema object with "type", "properties", "required". args is the actual arguments to validate. Returns nil if valid, or a list of ValidationErrors.
func (ValidationError) Error ¶
func (e ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.