(-map-schema {tc :count :as stats}
schema
{:malli.provider/keys [infer map-of-threshold]
:or {map-of-threshold 3}
:as options})(-schema stats)(-schema {:keys [types] :as stats}
{:malli.provider/keys [value-decoders] :as options})(-sequential-schema {tc :count :as stats}
type
schema
{:malli.provider/keys [infer tuple-threshold] :as options})(provide xs)(provide xs options)Given an sequence of example values, returms a Schema that can all values are valid against.
For better performance, user provider instead. see provider for available options.
Given an sequence of example values, returms a Schema that can all values are valid against. For better performance, user [[provider]] instead. see [[provider]] for available options.
(provider)(provider options)Returns a inferring function of values -> schema. Supports the following options:
:malli.provider/value-decoders, function oftype -> target-type -> value -> decoded-value`Returns a inferring function of `values -> schema`. Supports the following options: - `:malli.provider/map-of-threshold (default 3), how many identical value schemas need for :map-of - `:malli.provider/tuple-threshold (default 3), how many identical value schemas need for :tuple - `: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 |