Added double as possible type

Former-commit-id: 0caa8d0cb81db4d6592db296cb1f775e91efce50
This commit is contained in:
T. van der Zwan 2013-11-22 10:47:05 +00:00
parent 42b322a011
commit 958feabf5b
1 changed files with 2 additions and 0 deletions

View File

@ -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")