remove unnecessary test

This commit is contained in:
Dietmar Maurer 2018-11-07 12:16:16 +01:00
parent 7b5316ddfa
commit 144f0f5eda
1 changed files with 0 additions and 3 deletions

View File

@ -185,9 +185,6 @@ pub fn parse_parameter_strings(data: &Vec<(String, String)>, schema: &Jss, test_
for (key, value) in data { for (key, value) in data {
if let Some(prop_schema) = properties.get::<str>(key) { if let Some(prop_schema) = properties.get::<str>(key) {
match prop_schema { match prop_schema {
Jss::Object(_) => {
errors.push(format_err!("parameter '{}': cant parse complex Objects.", key));
}
Jss::Array(jss_array) => { Jss::Array(jss_array) => {
if params[key] == Value::Null { if params[key] == Value::Null {
params[key] = json!([]); params[key] = json!([]);