Open jdkealy opened 4 months ago
I can't seem to make any endpoint receive just a regular map. Everything is an array. As you can see, I have a key "test" and swagger UI is showing it as an array. Any idea how to resolve this ?
(def account-handlers ["/accounts" {:coercion reitit.coercion.spec/coercion :swagger {:tags ["accounts"]}} ["" {:get {:summary "All Accounts" :handler accounts-handler} :post {:parameters {:body {:test int?}} :summary "Create Account" :handler create-account-handler}}]])
I can't reproduce this. I tried adding your endpoint to examples/ring-spec-swagger, and it works as expected. Could you post a minimal reproduction?
Sorry, closed by accident :innocent:
I can't seem to make any endpoint receive just a regular map. Everything is an array. As you can see, I have a key "test" and swagger UI is showing it as an array. Any idea how to resolve this ?