Crate axum_json_schema

Source
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§

JsonSchemaRejection
Rejection for Json.