cheshire
cheshire copied to clipboard
clojure.spec.alpha support
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!
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.