Fork me on GitHub
#reitit
<
2018-07-28
>
ikitommi19:07:51

@yogthos, took your suggested way with multipart: adding a multipart middleware into an endpoint will make the endpoint understand :multipart parameters and emits the required swagger info. There is a spec multipart/temp-file-param, not sure in which ns to put the Schema version. Maybe all schemas into reitit.ring.schema? Ideas?

yogthos19:07:10

Awesome, and yeah reitit.ring.schema seems like a good place for default schemas

ikitommi19:07:47

cool, will do.

ikitommi19:07:35

and actually, you can mount the multipart/multipart-middleware globally to a router. It attaches only to routes which have the :multipart parameters defined.

ikitommi19:07:46

nice side-effect 😉

yogthos19:07:08

And everything's been working pretty well so far, we're using reitit in a couple of projects at work, and I'm using it in a side project as well :-)

yogthos19:07:53

The API is shaping up very nicely

👍 4