Skip to content

Commit

Permalink
reverting validator for FILE_SIZE as the original support EL values
Browse files Browse the repository at this point in the history
  • Loading branch information
markobean committed Jan 10, 2025
1 parent 278e764 commit ce670af
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class GenerateFlowFile extends AbstractProcessor {
.description("The size of the file that will be used")
.required(true)
.defaultValue("0B")
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
.addValidator(StandardValidators.DATA_SIZE_VALIDATOR)
.expressionLanguageSupported(ExpressionLanguageScope.ENVIRONMENT)
.build();
public static final PropertyDescriptor BATCH_SIZE = new PropertyDescriptor.Builder()
Expand Down Expand Up @@ -188,8 +188,6 @@ protected Collection<ValidationResult> customValidate(ValidationContext validati
+ "text and Unique FlowFiles must be false.").build());
}

results.add(StandardValidators.DATA_SIZE_VALIDATOR.validate("File Size", validationContext.getProperty(FILE_SIZE).evaluateAttributeExpressions().getValue(), validationContext));

return results;
}

Expand Down

0 comments on commit ce670af

Please sign in to comment.