From ddc7bdd3315cb08658608c80c4a9fe95349e037c Mon Sep 17 00:00:00 2001 From: "T. van der Zwan" Date: Wed, 20 Nov 2013 09:07:01 +0000 Subject: [PATCH] Fixed use of 'enum' as type is schema Former-commit-id: 017cfe70198b37a05b9a852b30d783e239bf604b --- 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 2ace25a5..4cfa0935 100644 --- a/libsrc/utils/jsonschema/JsonSchemaChecker.cpp +++ b/libsrc/utils/jsonschema/JsonSchemaChecker.cpp @@ -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