(validate json json-schema)
Validate JSON according to JSON Schema.
If validation passes without errors, returns nil. Throws ex-info with data on all errors.
Supports draft-04 -> draft-07.
To switch draft versions, simply use the according version notation in the $schema uri: http://json-schema.org/draft-04/schema http://json-schema.org/draft-06/schema http://json-schema.org/draft-07/schema
JSON and JSON Schema params has to be input as either a JSON encoded string or EDN (map for both or vector for JSON).
Validate JSON according to JSON Schema. If validation passes without errors, returns nil. Throws ex-info with data on all errors. Supports draft-04 -> draft-07. To switch draft versions, simply use the according version notation in the $schema uri: http://json-schema.org/draft-04/schema http://json-schema.org/draft-06/schema http://json-schema.org/draft-07/schema JSON and JSON Schema params has to be input as either a JSON encoded string or EDN (map for both or vector for JSON).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close