Skip to main content

validate_query

Function validate_query 

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

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

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