Liking cljdoc? Tell your friends :D

spirit.data.pipeline.ignore


wrap-nil-model-ignoreclj

(wrap-nil-model-ignore f)

wraps the normalise-nil function such that any unknown keys are ignored (pipeline/normalise {:account {:name "Chris" :age 10 :parents ["henry" "sally"]}} {:schema (schema/schema examples/account-name-age-sex) :pipeline {:ignore {:account {:parents :checked}}}} {:normalise-nil [ignore/wrap-nil-model-ignore]}) => {:account {:name "Chris" :age 10 :parents ["henry" "sally"]}}

wraps the normalise-nil function such that any unknown keys are ignored
(pipeline/normalise {:account {:name "Chris"
                     :age 10
                     :parents ["henry" "sally"]}}
             {:schema (schema/schema examples/account-name-age-sex)
              :pipeline {:ignore {:account {:parents :checked}}}}
             {:normalise-nil [ignore/wrap-nil-model-ignore]})
=> {:account {:name "Chris"
              :age 10
              :parents ["henry" "sally"]}}
raw docstring

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

× close