src/server/rest.rs: correctly verify json parameters
This commit is contained in:
parent
eb2bdd1bcc
commit
34114e2606
|
@ -155,6 +155,7 @@ fn get_request_parameters_async(
|
||||||
params[&k] = parse_simple_value(&v, prop_schema)?;
|
params[&k] = parse_simple_value(&v, prop_schema)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
verify_json_object(¶ms, obj_schema)?;
|
||||||
return Ok(params);
|
return Ok(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue