Skip to content

Commit ba30e1a

Browse files
authored
[app-builder] fix: set minimum question length to 0 in validation (#277)
1 parent 3fad860 commit ba30e1a

File tree

1 file changed

+1
-1
lines changed
  • app-builder/jane/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/domains/appversion

1 file changed

+1
-1
lines changed

app-builder/jane/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/domains/appversion/AppVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ private void validateQuestion(RunContext context) {
455455
if (!this.isApp()) {
456456
return;
457457
}
458-
if (context.getQuestion() == null || !StringUtils.lengthBetween(context.getQuestion(), 1, this.maxQuestionLen,
458+
if (context.getQuestion() == null || !StringUtils.lengthBetween(context.getQuestion(), 0, this.maxQuestionLen,
459459
true, true)) {
460460
throw new AippParamException(INPUT_PARAM_IS_INVALID, BS_AIPP_QUESTION_KEY);
461461
}

0 commit comments

Comments
 (0)