Fork me on GitHub
#reitit
<
2022-10-31
>
aaron5102:10:59

Is there an existing validator/coercer for #uuid (java.util.UUIDs) in reitit :parameters?

pithyless06:10:06

IIRC, this will work out of the box for reitit and malli, coercing a string to UUID

:parameters {:path [:map [:my-id [:uuid]]]}

pithyless06:10:59

Do you have the correct middleware? eg.

reitit.http.interceptors.parameters/parameters-interceptor
reitit.http.coercion/coerce-request-interceptor

aaron5119:10:35

It works! Thank you.