reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
joefromct 2020-03-03T19:35:40.039900Z

Hi, i'm really loving swagger + reitit + spec for my somewhat complex data transformation services... i'm wondering if there is a way to omit the actual spec from the error? My specs are sort of huge, and distracting for my end users. I think i want something like this applied in reitit with expound but it doesn't seem to take, i wonder if i have to set it earlier or something? (expound/custom-printer {:show-valid-values? false :print-specs? false :theme :figwheel-theme}))

ikitommi 2020-03-04T18:30:15.047400Z

here’s the guide to set up custom exceptions: https://cljdoc.org/d/metosin/reitit/0.4.2/doc/ring/exception-handling-with-ring, hope it helps

ikitommi 2020-03-04T18:31:16.047700Z

e.g. setting a custom handler for :reitit.coercion/request-coercion and :reitit.coercion/request-coercion should effect that

worlds-endless 2020-03-03T23:20:18.041Z

I need to perform tear-down upon leaving some pages in my SPA. The :stop option in the re-frame controller sounds perfect for this, but it doesn't actually seem to do anything. Any help? This is https://github.com/metosin/reitit/issues/368

ikitommi 2020-03-04T18:29:09.047200Z

will ask if someone could check that out. if there is a bug, help welcome in fixing it