Skip to main content

validate_params

Function validate_params 

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

Validates path parameters (as a JSON object) when a params schema is registered.

Wire values are coerced from strings (numbers, booleans) before validation. No-op when not strict.