Expand description
Custom JSON extractor that emits ApiError::Validation on deserialization
failure instead of axum’s default 422/400.
Use middleware::validation::Json<T> instead of axum::Json<T> in handlers
that need the Python-shaped error envelope.
Re-exports§
pub use Query as ValidatedQuery;
Structs§
- Json
- Drop-in replacement for
axum::Jsonthat convertsserde_jsonparse errors intoApiError::Validationwith the Python-shaped{detail: [...], body: ...}envelope. - Login
Form - Path-scoped
Form<T>extractor forPOST /api/v1/auth/login. - Query
- Query-string extractor that maps
serde_urlencodedfailures toApiError::Validationwith the same Python-shaped{detail: [...], body: ...}envelope used byJson<T>.