JSON Schema for Clojure(Script)
Almost all Clojure implementations of json schema validators wrap Java libraries. This is generally a good idea.
However, there are some reasons why a native Clojure implementation can be useful:
Java libraries compile jsonschema to object graphs, making them inaccessible to many of the data functions in the Clojure core library.
Extensibility: JSON Schema is designed to be extended with additional vocabularies. Clojure has some nice open-for-extension mechanisms.
Size: Implementing JSON Schema is not that scary in a language as nice as Clojure. There’s not so much code to read, understand and possibly extend.
This library implements JSON Schema 'draft7' (draft-handrews-json-schema-validation-01).
|This is a new project, of alpha status. There may be future incompatible changes ahead.|
This library is tested with the official JSON-Schema-Test-Suite.
All 444 non-optional tests currently pass.