malli
malli copied to clipboard
High-performance data-driven data specification library for Clojure/Script.
It would be great if malli could transform Schemas to Avro. See http://avro.apache.org/docs/current/spec.html
```clj (m/decode [:map [:user-id :string]] {"user-id" "foo"} mt/json-transformer) ;; => {"user-id" "foo"} (m/decode [:map-of :keyword :string] {"user-id" "foo"} mt/json-transformer) ;; => {:user-id "foo"} ``` I think the first one should...
Is this argument for key options? Does it work? Or is it for something else? At the minimum, the docstring should mention the argument and what it does. Readme doesn't...
For validation, current support for recursive data via `:ref` seems to be appropriate and satisfactory. The problem is that this design is not fit for generation. Any example, even a...
Currently, `malli.generator/-string-gen` uses `test.check`'s `char` generator. Would you consider a PR that checks for an optional `:gen/char` property, making it easier to generate efficiently strings that constrain characters?
We (@ozjongwon) developed a macro in-house to satisfy our need for creating classes from Malli Schemas. ala `plumatic.schema/defrecord`. I'm wondering would there be interest in merging that upstream to Malli...
Hello, thanks for this very well-thought tool! The README of this lib usually names schemas like `Address`, `Age`, but also `abcd`, `my-schema`, and obviously a datum schema can be named...
By derived objects, I mean validator, explainer, de/encoder, etc. What exists currently: Let us consider the following simple case: ```clojure (def m0 (m/schema [:map [:a int?] [:b int?]])) (def m1...
Coming from Clojure Spec, I would expect merging a `:map` with a `:multi` to work intuitively. Instead, I hit the `merge-default` behavior in `malli.util/merge`, which drops the first schema in...
Saves on allocation and provides an immutable facade to underlying regular set Followup to #522 Part of #513