This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-23
Channels
- # announcements (1)
- # babashka (29)
- # beginners (53)
- # berlin (1)
- # cider (14)
- # clj-kondo (18)
- # cljsrn (16)
- # clojure (141)
- # clojure-france (4)
- # clojure-italy (8)
- # clojure-norway (1)
- # clojure-uk (57)
- # core-async (7)
- # cursive (3)
- # data-science (2)
- # datomic (12)
- # duct (5)
- # fulcro (27)
- # hoplon (37)
- # immutant (1)
- # jobs (2)
- # jobs-discuss (7)
- # kaocha (2)
- # leiningen (3)
- # music (17)
- # nyc (1)
- # off-topic (22)
- # pathom (27)
- # re-frame (33)
- # reitit (23)
- # shadow-cljs (20)
- # tools-deps (15)
- # vim (29)
@ikitommi I supply the routes in the order you mentioned and use :conflicts nil
as config. Will this result in a router which offers he maximum performance possible? I have about 150 groups of routes. Besides Patient
I have 150 other paths. Each “group” has 6 routes. So there will be about 900 routes.
@ikitommi i have parameters spec'd as (coll-of pos-int?)
, but this displays in swagger-ui's example as [0]
which is obviously not a valid value. spec generators can make correct example sequences out of the spec. any idea what could be causing this?
@akiel only the conflicting routes are served with linear router, other with best possible algo. There is one extra method call in the stack, so maybe a few ns penalty.
https://github.com/metosin/reitit/blob/master/modules/reitit-core/src/reitit/core.cljc#L323-L325
@vale does the swagger json contain :min
value? Should be 1 for pos-int? I believe...
you're right, it sure does.
{"type":"integer","format":"int64","minimum":1}
so i figure this is an issue with swagger-ui then?could you point me to where does reitit include/load that? then i could debug which side the problem is
I would browse the swagger-ui repo for related issues. You can also try updating the swagger-ui deps to latest
oh it's a git submodule of ring-swagger-ui? got it. gonna put up a PR if i find a bug
["/user"
{:get {:summary "get a user"
:middleware [middleware/wrap-restricted]
:handler (fn [req]
(user/get-user req))}}
["/login"
:post {:summary "login as user"
:parameters {:body {:screen_name string?
:password string?}}
:handler (fn [req]
(user/login req))}}]
...
Made a PR for publishing intermediate paths by default https://github.com/metosin/reitit/pull/326
I've started to work on this.

Made a PR for publishing intermediate paths by default https://github.com/metosin/reitit/pull/326