Re: Clojure Spec and Human Readable Error Messages

2020-02-15 Thread John Shaffer
David, I've published code204/spec-forms 0.1.0-alpha2 to Clojars. It works fine for simple specs (meaning I haven't tried it on anything crazy yet) and can be used with phrase as well. It's only about 50 lines, so I tried to cover everything in the README: https://github.com/code204/spec-forms#spe

Re: Clojure Spec and Human Readable Error Messages

2020-02-03 Thread John Shaffer
The phrase library can create human-readable error messages: https://github.com/alexanderkiel/phrase I've been working on something for a more natural (to me) approach, with the ability to define error messages in-line with the predicate. E.g., (s/defop max-length [n] (sf/validator #(>= n (