reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
roklenarcic 2021-06-13T08:30:58.087700Z

How do I make coercion work in nested fashion

roklenarcic 2021-06-13T08:31:00.087900Z

["/stats/{project-id}"
 {:parameters {:path [:map [:project-id int?]]}}
 ["/{file}/stats" {:get {:parameters {:path [:map [:file string?]]}
                         :handler get-file-stats}}]]

roklenarcic 2021-06-13T08:31:10.088200Z

This only gives me :project-id in the map

ikitommi 2021-06-13T08:40:33.089200Z

@roklenarcic it's a bug, with all coercion imps, mostly visible with malli

ikitommi 2021-06-13T08:40:40.089300Z

See https://github.com/metosin/reitit/pull/474

roklenarcic 2021-06-13T08:54:26.089600Z

So the only workaround is to specify full parameters at each endpoint

ikitommi 2021-06-13T09:09:47.089800Z

sadly, yes.