Liking cljdoc? Tell your friends :D

org.passen.malapropism.core

Malapropism is a malli-backed configuration library.

Malapropism is a malli-backed configuration library.
raw docstring

verify!clj

(verify! [config-schema config-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.
sourceraw docstring

with-schemaclj

(with-schema config-schema)

Initializes malapropism with a malli schema.

Initializes malapropism with a malli schema.
sourceraw docstring

with-values-from-envclj

(with-values-from-env config)

Reads configuration values from the process's environment variables.

Reads configuration values from the process's environment variables.
sourceraw docstring

with-values-from-fileclj

(with-values-from-file config file)

Reads configuration values from an edn file.

Reads configuration values from an edn file.
sourceraw docstring

with-values-from-mapclj

(with-values-from-map [config-schema config-values] 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.
sourceraw docstring

with-values-from-systemclj

(with-values-from-system config)

Reads configuration values from the JVM's system properties.

Reads configuration values from the JVM's system properties.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close