Fork me on GitHub
#reitit
<
2020-03-22
>
johan01:03:58

How did you solve that ?

bartuka10:03:02

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

bartuka14:03:02

@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

Gulli22:03:30

Anyone know why I might be getting a IllegalArgumentException here? https://pastebin.com/8Pzk8rNT

Gulli22:03:59

It's at the bottom

Gulli22:03:35

I'll create a Github rep for this tomorrow for easier debugging if nobody knows offhand what this is 🙂

Gulli22:03:56

Fixed it:

(def app
  (-> router
      ring/ring-handler
      wrap-json-response
      (wrap-json-body {:keywords? true})))