This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-05
Channels
- # adventofcode (138)
- # announcements (1)
- # babashka (4)
- # beginners (71)
- # biff (2)
- # calva (7)
- # cider (20)
- # clj-kondo (4)
- # cljsrn (4)
- # clojure (36)
- # clojure-europe (37)
- # clojure-nl (2)
- # clojure-norway (27)
- # clojure-portugal (1)
- # clojure-uk (4)
- # clojurescript (8)
- # emacs (3)
- # graphql (1)
- # hugsql (4)
- # humbleui (6)
- # hyperfiddle (1)
- # jobs-discuss (18)
- # joyride (2)
- # malli (17)
- # meander (7)
- # membrane (8)
- # off-topic (16)
- # pathom (14)
- # portal (4)
- # rdf (36)
- # reitit (4)
- # releases (2)
- # remote-jobs (1)
- # scittle (15)
- # shadow-cljs (13)
- # tools-deps (40)
Should and generators use bind in reverse order to allow for transformers? Sort of like specs conforming
I wonder if anyone may have an example of using {:gen/gen ....}
to generate a random email address for a malli schema?
on my phone, but are you familiar with https://github.com/gfredericks/test.chuck? I’ve previously used string-from-regex
for this. I’ve also more recently been using the faker
library with malli to generate reasonable looking data if you’re not testing the extremes of the data itself (and don’t need smart shrinking)
I can whip one up if you'd like Tldr is I'd break it down to its components first, then compose their generators
with generators I think the question is always what’s “interesting” and in scope for the “purpose” of the output. If you’d like to test the limitations of the email string itself @UK0810AQ2 approach of composing from smaller generators is sound.
Yeah, it's hairy, been there before on validating email. I'll take a pragmatic approach.
I tried to search but it's kind of nebulous lol
They have implementation differences that leak into your code in surprising ways (if you're not aware of them). I suggest using :int
by default. :)
See e.g:
https://github.com/metosin/malli/issues/636
https://github.com/metosin/malli/issues/327
ah yeah, i remember seeing that a while back. that's annoying