examine.macros

Macros for convenient validator creation

defvalidator

macro

(defvalidator sym & specs)
Yields a defn for a one-argument validator function.
The validator function returns a localized messages map,
using the default localizer. The data is accessed by
the map-data-provider.
An empty map represents valid data.