Fork me on GitHub
#malli
<
2024-03-23
>
ikitommi13:03:02

Merged all done stuff, so welcome`[metosin/malli "0.15.0"]`! Changes below: > • :=> takes optional 3rd child, the guard schema validating vector of arguments and return value [args ret]. See https://github.com/metosin/malli/blob/master/docs/function-schemas.md#function-guards for more details. Fixes https://github.com/metosin/malli/issues/764 and https://github.com/metosin/malli/issues/764. >

;; function of arg:int -> ret:int, where arg < ret
> [:=> 
>  [:cat :int] 
>  :int 
>  [:fn (fn [[[arg] ret]] (< arg ret))]]
> • BREAKING: malli.generator/function-checker returns explanations under new keys: > ◦ ::mg/explain-input -> ::m/explain-input > ◦ ::mg/explain-output -> ::m/explain-output > ◦ new ::m/explain-guard to return guard explanation, if any > • m/explain for :=> returns also errors for args, return and guard if they exist > • FIX m/deref-recursive doesn’t play nice with :merge schema https://github.com/metosin/malli/issues/997 via https://github.com/metosin/malli/pull/999 > • FIX nested :repeat sequence schema’s doesn’t seem to work https://github.com/metosin/malli/issues/761 via https://github.com/metosin/malli/pull/1024 > • FIX Invalid Swagger JSON with [:or :nil] alternatives https://github.com/metosin/malli/issues/1006 via https://github.com/metosin/malli/pull/1023 > • FIX (explain :tuple []) https://github.com/metosin/malli/pull/1022 > • Enforce entry specs in open map destructurings https://github.com/metosin/malli/pull/1021 > • FIX goog/mixin was deprecated and is now removed https://github.com/metosin/malli/pull/1016 > • Updated dependencies: >
borkdude/edamame 1.3.23 -> 1.4.25

🚀 13
💯 4
❤️ 3