auto-core.schema

Validate the data against the schema.

Is a proxy for malli

add-default

(add-default schema data)

Adds to data default values defined in the schema.

close-map-schema

(close-map-schema map-schema)

Turn a map schema into a closed one.

registry

validate

(validate schema)

Test the schema parameter is valid

Params: * schema schema to test

validate-data

(validate-data schema data)

Return true if the data is matching the schema Params: * schema schema to match * data data to check appliance to schema

validate-data-humanize

(validate-data-humanize schema data)

Returns nil if valid, the error message otherwise.

Params: * schema schema to match * data data to check appliance to schema

validate-humanize

(validate-humanize schema)

Test the schema parameter is valid Returns a humanize message about the error Returns nil if valid

Params: * schema schema to test