Fork me on GitHub
#reitit
<
2021-04-19
>
bartuka14:04:15

Hi all, I was doing validation of my reitit route data and noticed that reitit has support only for spec at https://github.com/metosin/reitit/blob/master/modules/reitit-core/src/reitit/spec.cljc, would be interesting to add support to malli schemas? If so, what approach? I thought about creating a malli.cljc file and replicate the behavior of spec.cljc

ikitommi14:04:41

@iagwanderson darn the slack history, someone just asked the same - there definitely should be support for malli. either a) replace the (buggy) spec validation with malli or b) allow one to pick either one. I would start with b, not sure how rude it would be to evolve eventually to a.

ikitommi14:04:03

if you have extra time, PR for b most welcome.

bartuka14:04:18

my idea to create a new namespace was to allow either one to be used

👍 1
ikitommi14:04:31

also, malli pretty printer would be needed, so much on the open source backlog, so little time (have a draft of that already)

ikitommi14:04:23

almost 2 years ago 😮

bartuka14:04:19

heha, time fly. I will take a look into it wednesday

👍 1