malli

https://github.com/metosin/malli :malli:
2020-09-01T20:55:37.020800Z

Have recursive schemas been implemented now? I know there was a ticket (which I cant find right now) where various versions were being discussed.

jhacks 2020-09-01T21:07:41.022Z

@shaunxcode It looks like this might be the discussion: https://github.com/metosin/malli/pull/117 and maybe this is the implementation?: https://github.com/metosin/malli/pull/209 but I’m just getting familiar with malli

2020-09-01T21:10:24.022400Z

thanks that is it exactly!

jhacks 2020-09-01T21:14:22.022900Z

@shaunxcode I just saw this section in the readme: https://github.com/metosin/malli#recursive-schemas which might be helpful too

jhacks 2020-09-01T21:39:34.023200Z

I was following along with this code from the README.md:

;; regexs work too
(mg/generate 
  [:re #"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$"] 
  {:seed 42, :size 10})
; => "CaR@MavCk70OHiX.yZ"
In order for it to work I needed to explicitly add test.chuck as a dependency, or else I would get this error:
Execution error (IllegalStateException) at malli.generator/eval20132$fn (generator.cljc:135).
    Attempting to call unbound fn: #'malli.generator/-re-gen
If that’s the expected behavior (and I didn’t mess something up), maybe it would be good to add a note to the README.md under https://github.com/metosin/malli#value-generation about adding test.chuck as a dependency?