RE: Converting json to work with clojure.spec

2017-08-11 Thread Sean Corfield
ull Sent: Monday, August 7, 2017 1:04 AM To: Clojure Subject: Re: Converting json to work with clojure.spec On Sunday, 4 December 2016 15:11:55 UTC, Jonathon McKitrick wrote: That being said, I see the benefits in moving to namespace qualified keys. Currently, I'm returning structures di

Re: Converting json to work with clojure.spec

2017-08-08 Thread jmckitrick
Hmm, that might be useful. I assume it would make sense for an API called from other apps, but not so much for internal web services called from your own client app. On Mon, Aug 7, 2017 at 4:04 AM Peter Hull wrote: > > On Sunday, 4 December 2016 15:11:55 UTC, Jonathon McKitrick wrote: >> >> That

Re: Converting json to work with clojure.spec

2017-08-07 Thread Peter Hull
On Sunday, 4 December 2016 15:11:55 UTC, Jonathon McKitrick wrote: > > That being said, I see the benefits in moving to namespace qualified keys. > Currently, I'm returning structures directly in Compojure handlers, and the > JSON conversion is implicitly handled. I checked Cheshire and didn't

Re: Converting json to work with clojure.spec

2017-08-06 Thread Brian Scaturro
Hi Jonathon, I am trying to figure out the same thing. I am using all namespace qualified keys, but curious how this works when using s/conform on a json payload. Did you ever find a solution for this? Thanks! Brian On Sunday, December 4, 2016 at 10:11:55 AM UTC-5, Jonathon McKitrick wrote: >

Re: Converting json to work with clojure.spec

2016-12-04 Thread Jonathon McKitrick
Ah, I see that now. That being said, I see the benefits in moving to namespace qualified keys. Currently, I'm returning structures directly in Compojure handlers, and the JSON conversion is implicitly handled. I checked Cheshire and didn't immediately see a way to generate namespaced keys. What