From 958feabf5bc377387314ac2c25ed71a0eb147cbf Mon Sep 17 00:00:00 2001 From: "T. van der Zwan" Date: Fri, 22 Nov 2013 10:47:05 +0000 Subject: [PATCH] Added double as possible type Former-commit-id: 0caa8d0cb81db4d6592db296cb1f775e91efce50 --- libsrc/utils/jsonschema/JsonSchemaChecker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/utils/jsonschema/JsonSchemaChecker.cpp b/libsrc/utils/jsonschema/JsonSchemaChecker.cpp index 4cfa0935..da0c51d8 100644 --- a/libsrc/utils/jsonschema/JsonSchemaChecker.cpp +++ b/libsrc/utils/jsonschema/JsonSchemaChecker.cpp @@ -154,6 +154,8 @@ void JsonSchemaChecker::checkType(const Json::Value & value, const Json::Value & wrongType = !value.isNumeric(); else if (type == "integer") wrongType = !value.isIntegral(); + else if (type == "double") + wrongType = !value.isDouble(); else if (type == "boolean") wrongType = !value.isBool(); else if (type == "object")