Implementation of DTC property masks.
A property is redacted from the document if the following conditions are met:
Example: (defn mf "Property :y is read-only, disable writing!" [dtc doc action property-name] (not= :read action))
(def dtc (dom-type-collection :name :qwerty :properties {:x (s/string) :y (s/string :mask mf) :z (s/string)}))
Implementation of DTC property masks. A property is redacted from the document if the following conditions are met: * property has been annotated with a :mask f attribute * f is a function * (f dtc doc action property-name) is truthy at the time of deferral Example: (defn mf "Property :y is read-only, disable writing!" [dtc doc action property-name] (not= :read action)) (def dtc (dom-type-collection :name :qwerty :properties {:x (s/string) :y (s/string :mask mf) :z (s/string)}))
(build-station action)
Builds a station which redacts from doc those properties, which:
Builds a station which redacts from doc those properties, which: * have been marked for masking * pass the mask test
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close