How did you solve that ?
sorry for the late response @johan178, this was the solution:
["/swagger.json" {:get {:no-doc true
:swagger {:info {:title "tracking-contratacao API"
:version "1.0.0"
:description "API destinada ao tracking da esteira de contracação"}
:basePath "/"}
:handler (swagger/create-swagger-handler)}}]
I think this basePath is only to documentation purposes@ikitommi how are you? I found the problem with the decimal parsing that we discussed sometime ago. It was working in :form
params but not as :body
param. After a nice tour in reitit internals I tracked down the issue to spec-tools
again. I opened a PR with a proposed solution: https://github.com/metosin/spec-tools/pull/217
Anyone know why I might be getting a IllegalArgumentException here? https://pastebin.com/8Pzk8rNT
It's at the bottom
I'll create a Github rep for this tomorrow for easier debugging if nobody knows offhand what this is 🙂
Fixed it:
(def app
(-> router
ring/ring-handler
wrap-json-response
(wrap-json-body {:keywords? true})))