|
|
@@ -24,7 +24,7 @@ public class PropertyNameTester implements Tester {
|
|
|
public void validate(JsonNode node) throws ValidationException {
|
|
|
final List<ValidationException> exceptions =
|
|
|
EitherStream.from(JsonHelper.fieldNames(node, TextNode::valueOf))
|
|
|
- .map(schema::validate, ValidationException.class)
|
|
|
+ .flatMap(schema::validate, ValidationException.class)
|
|
|
.collect(Collectors.toList());
|
|
|
if (!exceptions.isEmpty()) {
|
|
|
throw new ValidationException("propertyNames", "unable to match property names",
|