Documentation ¶
Overview ¶
Package schema is an adapter from https://github.com/xeipuuv/gojsonschema to the jk runtime, so that validation via JSON Schema can be built into the standard library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error is a struct that will serialise as JSON neatly, to be rehydrated as a validation error by the RPC wrapper in JavaScript.
func ValidateWithFile ¶
ValidateWithFile validates a value (as JSON stringified) against the schema at the path given.
func ValidateWithObject ¶
ValidateWithObject validates a value against a schema. Both arguments are supplied as strings, since they will be passed as strings via RPC anyway.
Click to show internal directories.
Click to hide internal directories.