Fork me on GitHub
#ring-swagger
<
2016-10-05
>
polymeris21:10:42

Using compojure-api, and trying to get it to return json responses using camelCase for the keys

polymeris21:10:05

Tried passing this to the (api ... macro:

polymeris21:10:22

{:format  {:response-opts {:json {:key-fn ->camelCaseString}}}
; other options
}

polymeris21:10:45

i thought {:key-fn ->camelCaseString} should eventually be passed as an opt to json/generate-string

polymeris21:10:55

but it doesn't seem to do anything

polymeris21:10:03

any pointers?

polymeris21:10:11

(btw, ->camelCaseString is a function in the camel-snake-kebab library)

polymeris21:10:00

oh... using :json-kw instead of :json works...