Skip to main content

validate_response

Function validate_response 

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

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

No-op when the registry is not strict.