Skip to content

Commit 9955e47

Browse files
committed
fix: refactor correlation rule
1 parent 6183dea commit 9955e47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/main/java/com/park/utmstack/service/dto/correlation/validators/CorrelationRuleValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public void validate(Object target, Errors errors) {
2222
errors.rejectValue("dataTypes", "DataTypesEmpty", "The rule must have at least one data type.");
2323
}
2424

25-
/*if (dto.getDefinition() == null || dto.getDefinition().getRuleVariables().isEmpty()) {
25+
if (dto.getDefinition() == null || dto.getDefinition().getRuleVariables().isEmpty()) {
2626
errors.rejectValue("definition.ruleVariables", "RuleVariablesEmpty", "The rule must have at least one rule variable.");
27-
}*/
27+
}
2828

2929
if (dto.getDefinition() != null && !StringUtils.hasText(dto.getDefinition().getRuleExpression())) {
3030
errors.rejectValue("definition.ruleExpression", "RuleExpressionEmpty", "The rule's expression must not be empty.");

0 commit comments

Comments
 (0)