Liking cljdoc? Tell your friends :D
Clojure only.

hara.data.pipeline.base.keyword


wrap-single-keywordclj

(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}}
raw docstring

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

× close