This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-07
Channels
- # aleph (15)
- # beginners (18)
- # boot (18)
- # business (1)
- # cider (11)
- # cljs-dev (13)
- # cljsrn (19)
- # clojure (14)
- # clojure-austin (8)
- # clojure-dusseldorf (1)
- # clojure-finland (1)
- # clojure-greece (118)
- # clojure-poland (3)
- # clojure-russia (46)
- # clojure-spec (65)
- # clojure-uk (18)
- # clojurebridge (3)
- # clojurescript (16)
- # cloverage (7)
- # core-async (8)
- # cursive (74)
- # datomic (28)
- # editors (3)
- # emacs (3)
- # ethereum (5)
- # hoplon (19)
- # jobs-rus (18)
- # lein-figwheel (1)
- # off-topic (2)
- # om (107)
- # om-next (4)
- # onyx (23)
- # pedestal (23)
- # proton (3)
- # protorepl (1)
- # re-frame (108)
- # reagent (10)
- # ring-swagger (15)
- # spacemacs (2)
- # specter (11)
- # testing (7)
- # untangled (79)
- # vim (4)
- # yada (53)
when i try http://localhost:3000/docks/1,1,1/tickets/decode server responds with 404
@koolkk I think it's doable but not trivial. You should create a custom schema coersion matcher to convert the string-with-commas into a list of Strings and plug it in to compojure-api. The tests demonstrate how to plug it in: https://github.com/metosin/compojure-api/blob/master/test/compojure/api/coercion_test.clj
@ikitommi what i don't understand is that is not even trying to coerce the thing, it tryies to resolve the url. And i think its valid to have this types of url. I mean i can not even get the coma separated numbers as a string. It tries to resolve the addres and responds 404
Is it normal to pass lists like that in the url? Personally i think its not the right way but i have to do it like that.
On the other hand swagger understands exactly what its supposed to do and generates the correct doc