reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
vlaaad 2020-03-26T10:21:26.011300Z

quick question: how can I mark query parameter as deprecated in swagger?

vlaaad 2020-03-26T10:23:52.012100Z

I tried this:

{(ds/opt :include-legacy-information) (st/spec {:spec boolean? :description "Deprecated" :deprecated true})}
but this entry is not propagated to swagger.json…

ikitommi 2020-03-26T10:49:23.012800Z

@vlaaad is there a deprecated key in swagger?

ikitommi 2020-03-26T10:50:47.014400Z

you can anyway push any data to swagger definitions by namespacing them with swagger, e.g. :swagger/deprecated true

vlaaad 2020-03-26T10:51:58.014800Z

yeah, just found it out browsing the code, thanks!

vlaaad 2020-03-26T10:54:35.015300Z

@ikitommi there is deprecated in swagger: https://swagger.io/docs/specification/describing-parameters/ (ctrl+f for deprecated)

👌 1
vlaaad 2020-03-26T13:39:54.016Z

ouch. deprecated is a swagger 3.0 feature, reitit supports 2.0

2020-03-26T15:29:40.017Z

Whats the correct way to get the current uri on itial load? we want to have users routed to the page they were last on. do i just call match by path on (.. js/document -location -href )?