reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
jacekschae 2021-04-27T05:25:58.176800Z

You would need to specify coercion in both places, here is a small example

:put    {:handler    ...
         :middleware ...
         :parameters {:path {:recipe-id string?}
                      :body {:name string? :prep-time number? :public boolean? :img string?}}
         :responses  ...}
         :summary    "Update recipe"}
The coercion is done with coercion spec. Hope it helps