An omniconf inspired config library using malli
malapropism is deployed to Clojars
(require '[org.passen.malapropism.core :as malapropism])
(def config-schema
[:map
[:env-key
{:optional true
:title "environment key"}
:keyword]
[:scm-rev
{:optional true
:title "scm revision"}
:string]])
(-> (malapropism/with-schema config-schema)
(malapropism/with-values-from-env)
(malapropism/with-values-from-map
{:env-key :dev
:scm-rev "923345"})
(malapropism/verify! ::verbose))
Copyright © 2022 Derek Passen
Released under an MIT license.