2 releases

0.1.1 Oct 26, 2023
0.1.0 Aug 30, 2019

#870 in Encoding

Download history 4/week @ 2024-02-18 24/week @ 2024-02-25 1/week @ 2024-03-03 37/week @ 2024-03-10 2/week @ 2024-03-17 31/week @ 2024-03-31

70 downloads per month
Used in source_generator

MIT/Apache

22KB
513 lines

serde-json-schema

Minimal implementation of json-schema using serde-json.

Example

// hang in there

Features/TODO

  • JSON Schema Core Type
  • JSON Schema Validation (partial, possibly different crate or optional feature)
  • Codegen (definitely different crate)
  • RootSchema vs SubSchema handling (is that used often?)
  • References
  • Test Serialization
  • Complete Feature List
  • Detect enum
  • Detect const

License

serde-json-schema is licensed under either of

Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Any help in form of descriptive and friendly issues or comprehensive pull requests are welcome!

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in serde-json-schema by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2–3MB
~93K SLoC