json-validation (documentation)
A small, simple JSON validation library. There are already a few JSON schema frameworks in the ecosystem:
Of these, this library is most similar to json-schema
, in that it is not an implementation of json-schema.org, but rather is a collection of combinators for validating the structure of a JSON object (e.g. for use in hspec-expectations
).
- More tests, better tests
- Much better (structured?) error messages, more accurate contexts (e.g. "expected nullable bool")
- Steal some pre-defined formats from http://json-schema.org/latest/json-schema-validation.html#anchor104