(-map-schema {tc :count :as stats}
schema
{:keys [:malli.provider/infer :malli.provider/map-of-threshold
:malli.provider/map-of-accept]
:or {map-of-accept -map-of-accept}
:as options})(-schema stats)(-schema {:keys [types] :as stats}
{:keys [:malli.provider/value-decoders] :as options})(-sequential-schema
{tc :count :as stats}
type
schema
{:keys [:malli.provider/infer :malli.provider/tuple-threshold] :as options})(provide xs)(provide xs options)Given an sequence of example values, returns a Schema that can all values are valid against.
For better performance, use provider instead. See provider for available options.
Given an sequence of example values, returns a Schema that can all values are valid against. For better performance, use [[provider]] instead. See [[provider]] for available options.
(provider)(provider options)Returns a inferring function of values -> schema. Supports the following options:
:malli.provider/map-of-accept, function of typestats -> boolean` to identify :map-of:malli.provider/value-decoders, function oftype -> target-type -> value -> decoded-value`Returns a inferring function of `values -> schema`. Supports the following options: - `:malli.provider/tuple-threshold, how many identical value schemas need for :tuple - `:malli.provider/map-of-threshold, how many identical value schemas need for :map-of - `:malli.provider/map-of-accept, function of type `stats -> boolean` to identify :map-of - `:malli.provider/value-decoders, function of `type -> target-type -> value -> decoded-value`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |