This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-02
Channels
- # announcements (5)
- # babashka (1)
- # beginners (140)
- # braveandtrue (1)
- # calva (28)
- # chlorine-clover (39)
- # cider (8)
- # clj-kondo (1)
- # cljfx (15)
- # cljs-dev (2)
- # clojure (41)
- # clojure-europe (39)
- # clojure-france (3)
- # clojure-germany (5)
- # clojurescript (28)
- # clr (1)
- # css (1)
- # cursive (3)
- # data-science (19)
- # fulcro (14)
- # graalvm (3)
- # hoplon (18)
- # jobs (2)
- # malli (7)
- # meander (2)
- # off-topic (10)
- # pathom (6)
- # re-frame (3)
- # reagent (2)
- # remote-jobs (1)
- # reveal (1)
- # shadow-cljs (5)
Hi! I would like to ask about feature request for malli.generator
.
It would be great to support relations and constrains like in https://github.com/reifyhealth/specmonstah
For example
(def schema
{:user {:prefix :u
:spec ::user}
:post {:prefix :p
:spec ::post
:relations {:created-by-id [:user :id]}}
:like {:prefix :l
:spec ::like
:relations {:post-id [:post :id]
:created-by-id [:user :id]}
:constraints {:created-by-id #{:uniq}}}})
Is it make sense for malli roadmap?@U1GTUPAVB specmonstah does a lot of things and it might be generic enough to support malli easily. Would you like to investigate / suggest that to specmonstah maintainers?
but, please write the issue to malli repo, so it's on potential backlog. The idea is good, would use that myself.
FYI - There is a fork of specmonstah meant to support malli, but I haven’t been tracking it so not sure how baked it is: https://github.com/lambdaisland/specmonstah-malli
👏 7