From 144f0f5eda4aa22622a261f9267038c328ee2354 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 7 Nov 2018 12:16:16 +0100 Subject: [PATCH] remove unnecessary test --- src/json_schema.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/json_schema.rs b/src/json_schema.rs index a6b7c1fc..a73cec24 100644 --- a/src/json_schema.rs +++ b/src/json_schema.rs @@ -185,9 +185,6 @@ pub fn parse_parameter_strings(data: &Vec<(String, String)>, schema: &Jss, test_ for (key, value) in data { if let Some(prop_schema) = properties.get::(key) { match prop_schema { - Jss::Object(_) => { - errors.push(format_err!("parameter '{}': cant parse complex Objects.", key)); - } Jss::Array(jss_array) => { if params[key] == Value::Null { params[key] = json!([]);