Fork me on GitHub
#reitit
<
2019-09-17
>
ikitommi09:09:00

Is anyone using custom route data specs for middleware & interceptors?

ikitommi09:09:33

spec1 has issues in deep-merging specs, so it’s kinda incomplete with nesting. also, the spec-closing by spec-tools is kinda hack and IF people need nested specs, could add support for malli on those too.

ikitommi09:09:13

with non-nested specs, current spec1+spec-tools should work ok

ikitommi09:09:32

currently need the deep-merging of mw/interceptor specs with multipart-interceptor, that should add new specs under :parameters. But it’s the only one in reitit itself, and will go away when OpenAPI3-support lands.

telekid20:09:45

I’m having trouble mocking out a handler in a test because of route compilation. Is there an easy way to rebind a handler in compiled routes after either a call to bindings or with-redef?