Skip to main content

validate_request

Function validate_request 

Source
pub fn validate_request(
    registry: &SchemaRegistry,
    path: &str,
    method: &Method,
    body: &Value,
) -> Result<()>
Available on crate feature schema-validate only.
Expand description

Validates a JSON request body against the registered request schema for path + method.

No-op when the registry is not strict.