Validating storage decorator. Wraps any VtnStorage implementation and validates entities against wire-format Malli schemas on create and update operations. Delegates all reads and deletes unchanged.
As a Component, depends on :raw-storage (the underlying VtnStorage impl). All existing system references to :storage get validation automatically.
Validating storage decorator. Wraps any VtnStorage implementation and validates entities against wire-format Malli schemas on create and update operations. Delegates all reads and deletes unchanged. As a Component, depends on :raw-storage (the underlying VtnStorage impl). All existing system references to :storage get validation automatically.
(new-validating-storage)Create a ValidatingStorage component. Depends on :raw-storage.
Create a ValidatingStorage component. Depends on :raw-storage.
(wrap-validation storage)Wrap a VtnStorage implementation with schema validation (non-Component use). Returns a ValidatingStorage that validates on create/update.
Wrap a VtnStorage implementation with schema validation (non-Component use). Returns a ValidatingStorage that validates on create/update.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |