mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Added double as possible type
Former-commit-id: 0caa8d0cb81db4d6592db296cb1f775e91efce50
This commit is contained in:
parent
42b322a011
commit
958feabf5b
@ -154,6 +154,8 @@ void JsonSchemaChecker::checkType(const Json::Value & value, const Json::Value &
|
|||||||
wrongType = !value.isNumeric();
|
wrongType = !value.isNumeric();
|
||||||
else if (type == "integer")
|
else if (type == "integer")
|
||||||
wrongType = !value.isIntegral();
|
wrongType = !value.isIntegral();
|
||||||
|
else if (type == "double")
|
||||||
|
wrongType = !value.isDouble();
|
||||||
else if (type == "boolean")
|
else if (type == "boolean")
|
||||||
wrongType = !value.isBool();
|
wrongType = !value.isBool();
|
||||||
else if (type == "object")
|
else if (type == "object")
|
||||||
|
Loading…
Reference in New Issue
Block a user