(coerce-config schema data)
Validates and transforms, if possible, data
against schema
, dropping unknown keys.
Validates and transforms, if possible, `data` against `schema`, dropping unknown keys.
(config-coercion-matcher schema)
A matcher that coerces keywords, keyword eq/enums, s/Num and s/Int, and long and doubles (JVM only) from strings, also removes unknown keys and parses strings as YAML where map is expected.
A matcher that coerces keywords, keyword eq/enums, s/Num and s/Int, and long and doubles (JVM only) from strings, also removes unknown keys and parses strings as YAML where map is expected.
(map-remap keymap m)
(map-remap {:A :a} {:a 1 :b 2}) => {:A 1}
(map-remap {:A :a} {:a 1 :b 2}) => {:A 1}
(remove-key-prefix prefix m)
(remove-key-prefix :db- {:db-port 1234}) => {:port 1234}
(remove-key-prefix :db- {:db-port 1234}) => {:port 1234}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close