Default return for non existent field is success
This commit is contained in:
parent
4219785be4
commit
288e67e166
@ -37,6 +37,6 @@ public class PropertyProbe extends Probe<JsonNode> {
|
||||
}
|
||||
|
||||
private ReportItems defaultValidation(JsonNode node, RunContext ctx) {
|
||||
return notRun("Not additional validations run", ctx);
|
||||
return success(ctx);
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ public class StringValuePropertyProbe extends PropertyProbe {
|
||||
}
|
||||
|
||||
private ReportItems defaultValidation(List<String> nodeValues, RunContext ctx) {
|
||||
return notRun("Not additional validations run", ctx);
|
||||
return success(ctx);
|
||||
}
|
||||
|
||||
|
||||
|
@ -30,7 +30,8 @@ public class ValidationImagePropertyProbe extends ValidationPropertyProbe {
|
||||
|
||||
@Override
|
||||
protected ReportItems reportForNonExistentProperty(JsonNode node, RunContext ctx) {
|
||||
return notRun("Could not load and validate image in node " + node.toString(), ctx);
|
||||
// Could not load and validate image in node
|
||||
return success(ctx);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user