Skip to content

Commit a645661

Browse files
authored
Fixed Maximum Size (#97)
Fixed the maximum size so it's able to generate up to 2048 px in width/height. Also fixed the wrong error message that got displayed.
1 parent 548b9f0 commit a645661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/validation/src/main/java/com/shifthackz/aisdv1/core/validation/dimension/DimensionValidatorImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ internal class DimensionValidatorImpl(
2727
)
2828
input.toInt() > maximum -> ValidationResult(
2929
isValid = false,
30-
validationError = DimensionValidator.Error.LessThanMinimum(maximum),
30+
validationError = DimensionValidator.Error.BiggerThanMaximum(maximum),
3131
)
3232
else -> ValidationResult(isValid = true)
3333
}
3434

3535
companion object {
3636
private const val MINIMUM = 64
37-
private const val MAXIMUM = 1024
37+
private const val MAXIMUM = 2048
3838
}
3939
}

0 commit comments

Comments
 (0)