Skip to content

Commit fcfeb38

Browse files
committed
Add helper method
1 parent c48648a commit fcfeb38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/apiflows/parser/OpenAPIWorkflowValidatorResult.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public void setErrors(List<String> errors) {
2727

2828
public void addError(String error) {
2929
this.errors.add(error);
30-
this.valid = false;
30+
}
31+
32+
public void addErrors(List<String> errors) {
33+
this.errors.addAll(errors);
3134
}
3235
}

0 commit comments

Comments
 (0)