pub fn validate_json<T: VldParse>( request: &Request, ) -> Result<T, Response<Body>>
Validate the JSON body. A missing or non-JSON Content-Type is 415, malformed JSON and schema errors are 422.
Content-Type