2 releases

0.1.1 Oct 26, 2023
0.1.0 Aug 30, 2019

#1519 in Encoding


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.4–4MB
~69K SLoC