Skip to main content

validate_json

Function validate_json 

Source
pub fn validate_json<T: VldParse>(
    request: &Request,
) -> Result<T, Response<Body>>
Expand description

Validate the JSON body. A missing or non-JSON Content-Type is 415, malformed JSON and schema errors are 422.