mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Merge remote-tracking branch 'vcmi/master' into develop
This commit is contained in:
@ -102,7 +102,10 @@ static std::string enumCheck(JsonValidator & validator, const JsonNode & baseSch
|
||||
if (data == enumEntry)
|
||||
return "";
|
||||
}
|
||||
return validator.makeErrorMessage("Key must have one of predefined values");
|
||||
|
||||
std::string errorMessage = "Key must have one of predefined values:" + schema.toCompactString();
|
||||
|
||||
return validator.makeErrorMessage(errorMessage);
|
||||
}
|
||||
|
||||
static std::string constCheck(JsonValidator & validator, const JsonNode & baseSchema, const JsonNode & schema, const JsonNode & data)
|
||||
|
Reference in New Issue
Block a user