reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
johan 2020-03-22T01:55:58.106400Z

How did you solve that ?

bartuka 2020-03-22T10:53:02.107600Z

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

👍 1
bartuka 2020-03-22T14:49:02.109200Z

@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

2020-03-22T22:32:30.110Z

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

2020-03-22T22:32:59.110600Z

It's at the bottom

2020-03-22T22:33:35.111300Z

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

2020-03-22T22:59:56.111700Z

Fixed it:

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