Generate JSON Schema documents from Rust code
Schemars is a Rust library that generates JSON Schema documents from Rust code, enabling developers to automatically create schema specifications that match how their types serialize and deserialize with Serde. The project is built in Rust and integrates with the Serde ecosystem, providing a `#[derive(JsonSchema)]` macro and `schema_for!` macro for schema generation, with support for numerous popular Rust crates like chrono, uuid, and bytes through optional feature flags. The library maintains compatibility with Serde's serialization behavior by respecting `#[serde(...)]` attributes and offers an alternative `schema_for_value!` macro for types that implement `Serialize` but not `JsonSchema`.