(get-schema schema-registry schema-uri json-pointer)Returns json-schema from schema-registry at schema-uri/json-pointer
Returns json-schema from schema-registry at `schema-uri`/`json-pointer`
(load-schema schema-uri)Loads JSON or YAML schema from schema-uri and returns
map (of :openapi-schema, :schema-uri, :schema-registry) that contains all the
necessary information to perform validate! calls later (minus a JSON
pointer).
Loads JSON or YAML schema from `schema-uri` and returns map (of :openapi-schema, :schema-uri, :schema-registry) that contains all the necessary information to perform `validate!` calls later (minus a JSON pointer).
Default reusable SchemaRegistryConfig instance.
This configures the validator to:
nullable fields correctlyJSON_PATH for error paths in validation resultsThis config can be reused for schema load/validation for performance and consistency.
Default reusable `SchemaRegistryConfig` instance. This configures the validator to: - Enable JSON Schema reference preloading and caching - Enable format assertions (per the JSON Schema spec) - Set maximum reference nesting depth to 40 - Handle `nullable` fields correctly - Use `JSON_PATH` for error paths in validation results This config can be reused for schema load/validation for performance and consistency.
(validate {:as _schema :keys [schema-uri schema-registry]}
sub-schema
val
&
{:as _opts
:keys [validation-result]
:or {validation-result json-schema/validation-result}})Validates a val against schema
Validates a `val` against `schema`
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 |