Fork me on GitHub
#ring-swagger
<
2016-01-14
>
timgilbert21:01:50

Hi all... is it possible to specify that a single one of my routes only accepts edn, not edn or json as the rest of my routes do?

juhoteperi21:01:54

@timgilbert: For documentation purposes, yes. To disable other middlewares, no.

timgilbert21:01:24

Heh, ok. Thanks!

juhoteperi21:01:19

And while it's not very clean, you can return an error if other type is used in your handler code or in your own middleware, AFTER ring-middleware-format has decoded the body