This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-23
Channels
- # babashka (15)
- # beginners (102)
- # biff (4)
- # calva (15)
- # cider (51)
- # clojure (5)
- # clojure-dev (3)
- # clojure-europe (3)
- # clojure-france (1)
- # clojure-india (1)
- # clojure-korea (2)
- # clojure-norway (13)
- # clojurescript (20)
- # data-science (1)
- # datalevin (6)
- # datascript (2)
- # emacs (3)
- # events (2)
- # fulcro (4)
- # gratitude (2)
- # introduce-yourself (8)
- # lsp (3)
- # malli (1)
- # meander (1)
- # nbb (9)
- # off-topic (11)
- # releases (1)
- # ring (1)
- # yamlscript (5)
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