Fork me on GitHub
#reitit
<
2022-08-07
>
dumrat11:08:10

I'm new to reitit

dumrat11:08:38

I'm using malli for coercion and I get a monstrosity as a coercion error

dumrat11:08:43

How can I humanize?

Ferdinand Beyer17:08:44

I assume you use reitit’s exception-middleware? You can customise this by using create-exception-middleware and passing handlers for :reitit.coercion/request-coercion, as described here: https://cljdoc.org/d/metosin/reitit/0.5.18/doc/ring/exception-handling-with-ring By default, coercion exceptions are quite chatty, especially with big schemas. They do, however, contain a :humanized key by default