(blocklist->vector fl)Take a facts list as either a comma seperated string or a sequence and return a vector of those facts
Take a facts list as either a comma seperated string or a sequence and return a vector of those facts
Attempts to convert x to an integer. Failures will just return
the original value (intending to fail on validation)
Attempts to convert `x` to an integer. Failures will just return the original value (intending to fail on validation)
Basic conversion functions for use by Schema
Basic conversion functions for use by Schema
(convert-if-needed m)Inputs: [m :- {Class (s/make-fn-schema s/Any s/Any)}]
Wraps each coercion function (value in the map) with a check to only covert the type if it's not already of that type.
Inputs: [m :- {Class (s/make-fn-schema s/Any s/Any)}]
Wraps each coercion function (value in the map) with a check
to only covert the type if it's not already of that type.(convert-to-schema schema data)Convert data to the format specified by schema
Convert `data` to the format specified by `schema`
(defaulted-data schema data)Default missing values in the data map with values specified in schema
Default missing values in the `data` map with values specified in `schema`
(defaulted-maybe schema default)Create a new defaulted with default being used instead of schema. Defaulted
maybe will be validated as it's wrapped schema specifies.
Create a new defaulted with `default` being used instead of `schema`. Defaulted maybe will be validated as it's wrapped schema specifies.
(defaulted-maybe-keys schema)Returns all the defaulted keys of schema
Returns all the defaulted keys of `schema`
(defaulted-maybe? x)True when x is a DefaultedMaybe
True when `x` is a DefaultedMaybe
(period? x)True if x is a JodaTime Period
True if `x` is a JodaTime Period
(schema-key->data-key schema)Returns the key from the schema map used for retrieving
that schemas value from it's data map.
Returns the key from the `schema` map used for retrieving that schemas value from it's data map.
(strip-unknown-keys schema data)Remove all keys from data not specified by schema
Remove all keys from `data` not specified by `schema`
Schema type for JodaTime timestamps
Schema type for JodaTime timestamps
(transform-data in-schema out-schema data)Given an in-schema and out-schema, default missing values
and convert to the out-schema format.
Given an `in-schema` and `out-schema`, default missing values and convert to the `out-schema` format.
(unknown-keys schema data)Returns all the keys in data not specified by schema
Returns all the keys in `data` not specified by `schema`
Schema type for wire format datetime strings
Schema type for wire format datetime strings
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 |