Skip to main content

Module schema

Module schema 

Source
Expand description

A small JSON Schema checker for the subset sail’s schemas use.

Supported keywords: type (a name or a list of names), const, enum, properties, required, additionalProperties: false, items, oneOf, minimum, and $ref to #/$defs/<name>. Annotation keywords ($schema, $id, title, description) are ignored. Any other keyword is reported as unsupported, so a schema can never silently check less than it says.

Functions§

validate
Checks value against schema. Returns every violation, with its path.