4 releases (breaking)

0.4.0 Mar 12, 2020
0.3.0 Feb 26, 2020
0.2.0 Apr 16, 2019
0.1.0 Apr 12, 2019

#497 in Database interfaces

Download history 244/week @ 2021-07-01 413/week @ 2021-07-08 285/week @ 2021-07-15 376/week @ 2021-07-22 369/week @ 2021-07-29 318/week @ 2021-08-05 421/week @ 2021-08-12 365/week @ 2021-08-19 260/week @ 2021-08-26 331/week @ 2021-09-02 435/week @ 2021-09-09 406/week @ 2021-09-16 248/week @ 2021-09-23 444/week @ 2021-09-30 466/week @ 2021-10-07 255/week @ 2021-10-14

2,228 downloads per month
Used in less than 7 crates

MPL-2.0 license

115KB
2K SLoC

jsonschema-valid

A simple JSON schema validator for Rust. Unlike many of the alternatives, this just focusses on validating a document against a schema and providing nice error messages. There is no object mapping magic or anything like that.

Supports JSON Schema Drafts 4, 6, and 7.

This repository includes copies of the JSON schema metaschemas, which are compiled into the binary. These are all listed in the JSON schema specification links page. Specifically:

  • src/draft4.json comes from https://json-schema.org/draft-04/schema
  • src/draft6.json comes from https://json-schema.org/draft-06/schema
  • src/draft7.json comes from https://json-schema.org/draft-07/schema

Release process

This project uses cargo-release and follows the Semantic Versioning process.

To release a new version:

  1. Make sure all changes are in the CHANGELOG.md. Add missing changes and commit them.
  2. Run cargo release [level]
    • [level] should be one of major, minor or patch depending on the inluded changes.
  3. You're done.

License

This code is released under the Mozilla Public License, v. 2.0. See LICENSE.

Dependencies

~6MB
~143K SLoC