Tommi Reiman

Results 442 comments of Tommi Reiman

That's a good option. One more place to do this would be: ```clj (defn adder {:malli/schema [:=> [:cat :int] [:=> [:cat :int] :int]] :malli/recur true} [x] (partial + x)) ```

Would you be interested in doing a PR for this? I think the logic would go into `m/-instrument` + `m/-function-info` (which could expose if this should recur or not).

I think you proposal of using `{:recur true}` schema properties could be the starting point here. Need to think it over before committing to that, but the actual implementation is...

Generator already recur (as expected): ```clj (((mg/generate [:=> [:cat :int] [:=> [:cat :int] :int]]) 1) "2") ;Execution error (ExceptionInfo) at malli.core/-fail! (core.cljc:136). ;:malli.core/invalid-input {:input [:cat :int], :args ["2"], :schema [:=>...

Sadly, transformers don't receive both schema & value atm. Did a spike on adding schema to transforming functions some time ago, but was a big change and did not finish....

initial implementation (ignore whitespace to see the diff better): https://github.com/metosin/reitit/pull/628/files?w=1

interesting idea. But this would be a breaking change unless the lowercase keys would also be supported.

Good catch, this should be fixed (e.g. not allow them in non-tail postion)!

Sounds great! Thinking of setting up a multi-example repo here or at compojure-api. Will ping when it's set up. See https://github.com/metosin/compojure-api/issues/122

Also, `:middleware` is plural, not `:middlewares`.