cheshire icon indicating copy to clipboard operation
cheshire copied to clipboard

clojure.spec.alpha support

Open asilverman opened this issue 5 years ago • 1 comments

Hi @dakrone - I wanted to get your thoughts on providing a predicate function that can be used in conjunction with clojure spec called json? that one could add into a clojure.alpha.spec/valid? statement.

Thank you!

asilverman avatar Feb 27 '19 17:02 asilverman

Hi @asilverman, I believe clojure spec is only compatible with Clojure 1.9+ correct? Cheshire still maintains compatibility back to Clojure 1.3, so it'd have to drop support for the earlier versions in order to support spec. That doesn't mean that it can't change in the future, just a tradeoff to consider.

If it could be an optional dependency that might be an option, but I'm not sure how closely it'd have to be integrated to know that for sure.

dakrone avatar Feb 27 '19 18:02 dakrone