Fork me on GitHub
#reitit
<
2020-02-07
>
wombawomba13:02:18

I'd like to use reitit.coercion.schema, but I'm not really happy with the way it renders errors. What's the easiest/cleanest way to get a custom format for said errors?

wombawomba13:02:18

Also, is there a recommended setup for Reitit on the backend? Ideally I'd like to be able to do websockets in a reasonably easy manner.

ikitommi16:02:43

@wombawomba coercion errors have a custom :type that can be handled cleanly in the exception middleware/interceptor. There should be a sample of that in the docs

ikitommi16:02:31

web-sockets, see the discussion above on Feb 5th..

ikitommi16:02:00

would be great if someone contributed an example of that to the repo.