Liking cljdoc? Tell your friends :D

scjsv.core

Use validator, json-validator, or json-reader-validator to construct a validator function.

Validator functions

The first argument for the validator function is the data. The optional second argument is an options map with the following keys:

keydefaultdescription
:deep-checkfalseCheck nested elements even if the parent elements are invalid.
Use [[validator]], [[json-validator]], or [[json-reader-validator]] to
construct a validator function.

### Validator functions

The first argument for the validator function is the data. The optional second
argument is an options map with the following keys:

| key           | default  | description |
|---------------|----------|-------------|
| `:deep-check` | `false`  | Check nested elements even if the parent elements are invalid.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close