Fork me on GitHub
#reitit
<
2021-09-15
>
Ben Sless08:09:14

Is there a proper way to let data just "pass through" muuntaja and not get encoded (assuming it's already bytes)

Maravedis12:09:27

Hello. Is there anyway to tell reitit route coercion (from reitit.coercion ) to be lenient and try to coerce strings in json to integer ?

ikitommi13:09:02

@clement.malaingre you can configure coercion with options (see the source code for docs), just use string-transformer instead of json-transformer.

Maravedis13:09:12

Oh. I was under the impression it was a different coerce but on second look, it actually is a more complete json coerce. That's a strange naming. Thanks!

2
ikitommi13:09:40

np, string is for “the string formats” like query-params, path-params, form-params, anything needs to be converted from string->edn.

ikitommi13:09:01

@ben.sless yes, by setting a "Content-Type" header into response