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

cjsauer 2021-04-27T12:57:18.177Z

Thanks for the reply. So I think :path and :body parameter sources work fine together as in your example, but it’s specifically :form and :body that appear incompatible. They both source from the body of the request, but with a different assumed encoding.