Skip to content

Commit d188623

Browse files
committed
[#757] Add validator that detects the cyclic imports
1 parent dc39f42 commit d188623

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dmn-core/src/main/java/com/gs/dmn/validation/CyclicImportsValidator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public List<String> validate(DMNModelRepository repository) {
3636
ValidationContext context = new ValidationContext(repository);
3737
if (isEmpty(repository)) {
3838
this.logger.warn("DMN repository is empty; validator will not run");
39+
return context.getErrors();
3940
}
4041

4142
// Build the import graph

0 commit comments

Comments
 (0)