Validate a drawspec document
validateCheck whether a document would be rejected by render, and locate each violation by JSON pointer. Run before rendering to fix all issues in one pass.
Instructions
Answer whether render would refuse this document, and if so exactly where. Returns every violation, not the first — each located by JSON pointer, so one pass is one edit. Call this before render while a document is being written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | A bundled theme name or a path to a theme file. Omit for the default. | |
| document | Yes | A drawspec document, as JSON. The full field list is published at https://nuncaeslupus.github.io/drawspec/schema/drawspec-v1.schema.json, and `kinds` names the 36 values `kind` may take. |