Fork me on GitHub
#yada
<
2017-05-05
>
jeroenvandijk11:05:23

Hi, I’m trying to get pretty printed edn via Yada. I was guessing I could do this by setting the Accept header to "application/edn;pretty=true" based on https://github.com/juxt/yada/blob/0a8cd0a1790db6885f835e847bba80796d4f7f79/src/yada/body.clj#L155-L157, but this doesn’t work and even get a NullPointer exception for "application/edn?pretty=true". Am I missing something?

malcolmsparks12:05:44

@jeroenvandijk as I recall you need to add to the resource :produces too

jeroenvandijk12:05:03

Ah yes, thanks that works. Adding it to :produces as "application/edn;pretty=true" works.

jeroenvandijk12:05:34

Is that NullPointer exception expected or is that likely a misconfiguration somewhere?