Fork me on GitHub
#reitit
<
2020-10-05
>
skuro11:10:04

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?

skuro11:10:12

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

ingesol17:10:51

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

ingesol17:10:20

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

ingesol18:10:30

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.