This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-16
Channels
- # beginners (144)
- # boot (40)
- # cljsjs (1)
- # cljsrn (30)
- # clojure (190)
- # clojure-india (1)
- # clojure-poland (7)
- # clojure-russia (13)
- # clojure-spec (2)
- # clojurescript (2)
- # component (23)
- # css (6)
- # emacs (3)
- # events (5)
- # garden (4)
- # hoplon (2)
- # jobs-discuss (2)
- # klipse (1)
- # lein-figwheel (1)
- # off-topic (36)
- # re-frame (28)
- # reagent (2)
- # ring (7)
- # ring-swagger (2)
- # rum (3)
- # test-check (4)
- # untangled (4)
@weavejester What is the preferred way to convert keywords from camelCase to kebab when using wrap-json-body in ring/ring-json?
@benjamingramlich However you want. If you search https://www.clojure-toolbox.com/ for “String Manipulation” there are a few libraries that provide naming conversions.
are you open to a PR which supports it with a :key-fn option?
something like (wrap-json-body handler {:keywords? true :key-fn ->kebab-case-keyword})
?
Support for a :key-fn
would be fine. It might be a week until I can get around to merging it though.
okay. thanks. i’ll make a PR soonish.
Thanks 🙂