diff -r c8e1b5282f69 -r f0ede8046b59 src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt --- a/src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt Wed Aug 18 15:04:59 2021 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt Wed Aug 18 15:30:49 2021 +0200 @@ -304,4 +304,12 @@ } } +fun boolValidator(input: String?): ValidationResult { + return if (input.isNullOrBlank()) { + ValidatedValue(false) + } else { + ValidatedValue(!(input.equals("false", true) || input == "0")) + } +} + //