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