(wrap-single-keyword f)removes the keyword namespace if there is one
(pipeline/normalise {:account {:type :account.type/vip}} {:schema (schema/schema {:account/type [{:type :keyword :keyword {:ns :account.type}}]})} {:normalise-single [wrap-single-keyword]}) => {:account {:type :vip}}
removes the keyword namespace if there is one
(pipeline/normalise {:account {:type :account.type/vip}}
{:schema (schema/schema {:account/type [{:type :keyword
:keyword {:ns :account.type}}]})}
{:normalise-single [wrap-single-keyword]})
=> {:account {:type :vip}}cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |