This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-05
Channels
- # aatree (2)
- # admin-announcements (15)
- # announcements (2)
- # aws (8)
- # beginners (160)
- # boot (290)
- # braid-chat (28)
- # cider (8)
- # clara (1)
- # cljsrn (3)
- # clojure (154)
- # clojure-czech (7)
- # clojure-russia (162)
- # clojurebridge (2)
- # clojurescript (128)
- # cursive (29)
- # datomic (30)
- # emacs (7)
- # events (1)
- # hoplon (5)
- # jobs (1)
- # ldnclj (7)
- # leiningen (3)
- # off-topic (11)
- # om (82)
- # onyx (68)
- # overtone (1)
- # parinfer (57)
- # portland-or (1)
- # proton (18)
- # re-frame (8)
- # reagent (32)
- # ring-swagger (3)
- # yada (5)
@malcolmsparks: is there a way to provide custom coercions for the request body?
My usecase is the following:
- domain is expecting a year-month field with I represent by java.time.YearMonth (I thing java 8 took that from joda time)
- the recommendation for datetimes in over http is to use the 2016-02-05T14:45:45+00:00
format or sub-varieties of that like 2016-02-05
- I would like the api layer to do this conversion for me, can this be done in yada config or will I have to write my own conversion layer and just expect strings?
It's been requestes by others
Right now you can avoid using a body parameter and process it yourself. I'm not sure how Swagger presents complex schemas and you'd soon be at the limits of what ring-swagger can do.