Malapropism is a malli-backed configuration library.
Malapropism is a malli-backed configuration library.
(verify! {:org.passen.malapropism.core/keys [decode explain schema validate
values]}
&
{:keys [verbose?]})
Verifies the configuration matches the schema. Returns the coerced configuration data if valid, throws an exception if not. verbose? flag controls whether the ex-data contains the original values.
Verifies the configuration matches the schema. Returns the coerced configuration data if valid, throws an exception if not. verbose? flag controls whether the ex-data contains the original values.
(with-schema schema)
Initializes malapropism with a malli schema.
Initializes malapropism with a malli schema.
(with-values-from-env config)
Reads configuration values from the process's environment variables.
Reads configuration values from the process's environment variables.
(with-values-from-file config file)
Reads configuration values from an edn file.
Reads configuration values from an edn file.
(with-values-from-map config m)
Reads configuration values from a map. This is foundational; all other with-values-from-* functions call this one.
Reads configuration values from a map. This is foundational; all other with-values-from-* functions call this one.
(with-values-from-system config)
Reads configuration values from the JVM's system properties.
Reads configuration values from the JVM's system properties.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close