Default return for non existent field is success

This commit is contained in:
Xavi Aracil 2022-12-07 17:41:02 +01:00
parent 4219785be4
commit 288e67e166
3 changed files with 4 additions and 3 deletions

View File

@ -37,6 +37,6 @@ public class PropertyProbe extends Probe<JsonNode> {
} }
private ReportItems defaultValidation(JsonNode node, RunContext ctx) { private ReportItems defaultValidation(JsonNode node, RunContext ctx) {
return notRun("Not additional validations run", ctx); return success(ctx);
} }
} }

View File

@ -28,7 +28,7 @@ public class StringValuePropertyProbe extends PropertyProbe {
} }
private ReportItems defaultValidation(List<String> nodeValues, RunContext ctx) { private ReportItems defaultValidation(List<String> nodeValues, RunContext ctx) {
return notRun("Not additional validations run", ctx); return success(ctx);
} }

View File

@ -30,7 +30,8 @@ public class ValidationImagePropertyProbe extends ValidationPropertyProbe {
@Override @Override
protected ReportItems reportForNonExistentProperty(JsonNode node, RunContext ctx) { 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 @Override