Fixed use of 'enum' as type is schema

Former-commit-id: 017cfe70198b37a05b9a852b30d783e239bf604b
This commit is contained in:
T. van der Zwan 2013-11-20 09:07:01 +00:00
parent eaec09f029
commit ddc7bdd331
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ void JsonSchemaChecker::checkType(const Json::Value & value, const Json::Value &
wrongType = !value.isArray();
else if (type == "null")
wrongType = !value.isNull();
else if (type == "enum")
wrongType = !value.isString();
else if (type == "any")
wrongType = false;
else