7 releases (4 breaking)

0.5.2 Nov 8, 2023
0.5.1 Nov 17, 2022
0.5.0 Jul 11, 2022
0.4.0 Mar 12, 2020
0.1.0 Apr 12, 2019

#205 in Database interfaces

Download history 1104/week @ 2024-07-21 1095/week @ 2024-07-28 1100/week @ 2024-08-04 723/week @ 2024-08-11 1843/week @ 2024-08-18 2634/week @ 2024-08-25 2967/week @ 2024-09-01 3362/week @ 2024-09-08 2642/week @ 2024-09-15 2647/week @ 2024-09-22 3500/week @ 2024-09-29 3329/week @ 2024-10-06 1524/week @ 2024-10-13 3782/week @ 2024-10-20 1426/week @ 2024-10-27 704/week @ 2024-11-03

7,863 downloads per month
Used in 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

~7–10MB
~170K SLoC