in elitzur-core/src/main/scala/com/spotify/elitzur/validators/Validator.scala [254:264]
override def validate(a: PreValidation[A]): PostValidation[A] = {
if (a.forceGet.arg.isEmpty) {
throw new IllegalValidationException(
"Can't call `.validate()` on dynamic types without args"
)
} else if (a.forceGet.checkValid) {
Valid(a.forceGet)
} else {
Invalid(a.forceGet)
}
}