--- a/src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt Tue Jun 23 13:06:07 2026 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt Tue Jun 23 14:30:10 2026 +0200 @@ -48,7 +48,12 @@ val node = info.node } -sealed interface ValidationResult<T> +sealed interface ValidationResult<T> { + fun getOrNull(): T? = when (this) { + is ValidatedValue -> result + else -> null + } +} class ValidationError<T>(val message: String): ValidationResult<T> class ValidatedValue<T>(val result: T): ValidationResult<T>