site.fabricate.prototype.schema
Namespace
Utility namespace for working with malli schemas.
Functions
unify
- Description
- A lighter-weight version of malli's own unify/merge that's more compatible with number-based indexing/item access
- Arguments
[schemas]
ns-form?
- Description
- Returns true if the given form is a valid Clojure (ns ...) special form
- Arguments
[form]
malli?
- Description
- Returns true if the given form is a valid malli schema
- Arguments
[form]
has-reqd?
- Description
- Checks to see if at least one entry in the given map schema has required keys
- Arguments
[schema]
subschema
- Description
- Uses the registry of the provided schema to create a schema for one of the reference schemas in that registry.
- Arguments
[schema new-ref]
Constants
regex
- Description
- Malli schema for regular expressions
- Type
:malli.core/schema