Liking cljdoc? Tell your friends :D
Clojure only.

hara.data.pipeline.base.enum


wrap-single-enumclj

(wrap-single-enum f)

wraps normalise with comprehension of the enum type

(pipeline/normalise {:account {:type :account.type/guest}} {:schema (schema/schema {:account/type [{:type :enum :enum {:ns :account.type :values #{:vip :guest}}}]})} {:normalise-single [wrap-single-enum]}) => {:account {:type :guest}}

wraps normalise with comprehension of the enum type

(pipeline/normalise {:account {:type :account.type/guest}}
                     {:schema (schema/schema {:account/type [{:type :enum
                                                              :enum {:ns :account.type
                                                                     :values #{:vip :guest}}}]})}
                     {:normalise-single [wrap-single-enum]})
=> {:account {:type :guest}}
raw docstring

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

× close