mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 18:20:27 +01:00
Include property name in validation error when unmatched against properties or regexes in PropertiesConstraint
This commit is contained in:
parent
4f4f9cf81b
commit
05214c6630
@ -895,7 +895,9 @@ public:
|
||||
return false;
|
||||
}
|
||||
} else if (results) {
|
||||
results->pushError(context, "Failed to match property name to any names in 'properties' or regexes in 'patternProperties'");
|
||||
results->pushError(context, "Failed to match property name '" +
|
||||
propertyName + "' to any names in 'properties' or "
|
||||
"regexes in 'patternProperties'");
|
||||
validated = false;
|
||||
} else {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user