Fork me on GitHub
#malli
<
2020-03-22
>
Vincent Cantin05:03:35

@ikitommi What is the reason Malli use [:map [:x int?] [:y int?]] instead of [:map :x int? :y int?] ?

Vincent Cantin06:03:29

(I am asking for :map because I am wondering the same for :cat and :alt )

mike_ananev06:03:25

I guess that inside [:x int?] you can set many things: customized error message, validation function etc. Without vector[:x int?] expression structure becomes unreadable.

Vincent Cantin07:03:17

I updated the tests for :cat and :alt . Those tests represent the proposal I make for the data format which constitutes the API for this part of Malli. Feedback welcome ! https://github.com/metosin/malli/pull/187/files