Expand description
A simple crate provides a drop-in replacement for axum::Json
that uses jsonschema
to validate requests schemas
generated via schemars
.
You might want to do this in order to provide a better experience for your clients and not leak serde’s error messages.
All schemas are cached in a thread-local storage for the life of the application (or thread).
§Features
- aide: support for aide
Structs§
- Json
- Wrapper type over
axum::Json
that validates requests and responds with a more helpful validation message.
Enums§
- Json
Schema Rejection - Rejection for
Json
.