(-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, 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/map-of-accept, function of type
stats -> boolean` to identify :map-of:malli.provider/value-decoders, function of
type -> 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 is a website building & hosting documentation for Clojure/Script libraries
× close