reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
skuro 2020-10-05T11:30:04.055Z

hi there, I've a question about the swagger documents generation. It seems to me that regex specs are not yet well supported, is that so?

skuro 2020-10-05T11:31:12.056500Z

more specifically, I have an or-spec for my login endpoint (either you log in through user / password or you log in through oauth tokens). in the swagger docs I only see the model for the first branch of the s/or definition, whereas I'd like to have all data points from all branches being described in the model

ingesol 2020-10-05T17:31:51.057500Z

Is coercion supposed to work on the frontend? I tried to add spec coercion to my routes, but got

No such namespace: clojure.edn, could not locate clojure/edn.cljs, clojure/edn.cljc, or JavaScript source providing "clojure.edn" in file .../js/main.out/spec_tools/transform.cljc

ingesol 2020-10-05T17:41:20.057600Z

Just found that I’m on a too old CLJS version for that to work…

ingesol 2020-10-05T18:45:30.058800Z

Is it possible to specify coercions for params, without providing the coercion implementation fn in the :coercion key? I would like to send my routes as data over the wire.