Skip to main content

strict_field_validation_middleware

Function strict_field_validation_middleware 

Source
pub async fn strict_field_validation_middleware(
    req: Request,
    next: Next,
) -> Response
Expand description

Axum middleware: validate POST body against the typed Request schema for strict paths. Non-strict paths and non-POST methods pass through unmodified.