(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}}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close