Loads canonical JSON Schemas and validates payloads against their roots or definitions.
schema/common.json supplies shared definitions. Raw validators reject values outside
the JSON data model; engine adapters may normalize keyword maps before validation.
Loads canonical JSON Schemas and validates payloads against their roots or definitions. `schema/common.json` supplies shared definitions. Raw validators reject values outside the JSON data model; engine adapters may normalize keyword maps before validation.
(explain document-name value)(explain document-name definition value)JSON Schema errors for value, or nil when it satisfies the document root or
named definition. Clojure keyword maps are normalized to their JSON spelling
before definition validation.
JSON Schema errors for `value`, or nil when it satisfies the document root or named definition. Clojure keyword maps are normalized to their JSON spelling before definition validation.
(explain-json document-name definition value)JSON Schema errors without converting Clojure values into JSON spellings.
JSON Schema errors without converting Clojure values into JSON spellings.
(schema-document document-name)The parsed canonical JSON Schema named document-name, cached after its first read.
The parsed canonical JSON Schema named `document-name`, cached after its first read.
(valid-json? document-name definition value)True when raw JSON-shaped data satisfies a named definition.
True when raw JSON-shaped data satisfies a named definition.
(valid? document-name value)(valid? document-name definition value)True when value satisfies the document root or named JSON Schema definition.
True when `value` satisfies the document root or named JSON Schema definition.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |