GREsau/schemars
Generate JSON Schema documents from Rust code observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 94
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 27
- age_days: 2586
- days_rel: 37
- days_push: 37
- n_releases_24m: 12
Adoption not part of the score
1403 stars · 304 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Schemars is a Rust library that generates JSON Schema documents from Rust types via a JsonSchema trait and #[derive(JsonSchema)] macro. It is designed to stay compatible with Serde, honoring #[serde(...)] attributes so generated schemas match serde_ serialization behavior.
Use cases
- generate schema from rust structs
- validate payloads against rust types
- document serde serialization formats
- generate openapi schemas for rust api types
- produce schema for config file formats
- keep schema in sync with serde attributes
When to choose
- you write Rust and need JSON Schema documents matching your serde types
- you want schema generation via a simple derive macro
- you need serde attribute compatibility (rename, skip, flatten, etc.)
- you need no_std support or integrations with chrono, uuid, bytes and similar crates
When to avoid
- you need JSON Schema from non-Rust sources
- you need OpenAPI document generation itself rather than raw schemas
- your project is not in the Rust ecosystem
Facets
library · maturity stable
serialization developer-tools developer-tools apis backend rust cross-platform -schema serde derive-macro schema-generation
5 sources
- readme: https://github.com/GREsau/schemars · fetched 2026-08-28 · ed0162de81df
- homepage: https://graham.cool/schemars/ · fetched 2026-08-29 · 8a3a80c67d8e
- site_page: https://graham.cool/schemars/features · fetched 2026-08-29 · f44a4a8f9383
- site_page: https://graham.cool/schemars/v0/features · fetched 2026-08-29 · 58787425015b
- registry_crates: https://crates.io/api/v1/crates/schemars · fetched 2026-08-29 · ccca2b8795de
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| GREsau/schemars | main | 96 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem