Fork me on GitHub
#malli
<
2019-11-26
>
ikitommi15:11:43

@rschmukler been using that with schema for 5+ years, no complaints. Cursive does static analysis for that + you can omit the type hints if you don't know/want to define those, e.g

(m/defn plus
  [x :- int?, y] 
  (+ x y))

ikitommi15:11:20

will check the interceptor PR as soon as have extra time.

ikitommi15:11:39

the chaining of encoders & decoders with mt/transformer, I think it's a good idea.

ikitommi17:11:37

Is there something missing from the original plumatic schema syntax?

rschmukler19:11:27

@ikitommi I’ve got a proof of concept. I’ve separated the parsing from the code generation (the generation just takes a map). This will allow different styles to work.

rschmukler19:11:54

Regarding the composition of interceptors, if you don’t mind, I may do it as a separate PR to keep thins more focused.