Validate the data against the schema.
Is a proxy for malli
Validate the data against the schema. Is a proxy for malli
(add-default schema data)
Adds to data
default values defined in the schema
.
Adds to `data` default values defined in the `schema`.
(close-map-schema map-schema)
Turn a map schema into a closed one.
Turn a map schema into a closed one.
(validate schema)
Test the schema parameter is valid
Params:
schema
schema to testTest the schema parameter is valid Params: * `schema` schema to test
(validate-data schema data)
Return true if the data is matching the schema Params:
schema
schema to matchdata
data to check appliance to schemaReturn true if the data is matching the schema Params: * `schema` schema to match * `data` data to check appliance to schema
(validate-data-humanize schema data)
Returns nil if valid, the error message otherwise.
Params:
schema
schema to matchdata
data to check appliance to schemaReturns nil if valid, the error message otherwise. Params: * `schema` schema to match * `data` data to check appliance to schema
(validate-humanize schema)
Test the schema parameter is valid Returns a humanize message about the error Returns nil if valid
Params:
schema
schema to testTest the schema parameter is valid Returns a humanize message about the error Returns nil if valid Params: * `schema` schema to test
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close