-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unwrap method to access ValidatorBuilder from Kotlin DSL #263
Conversation
Thanks for your contribution! |
@@ -517,4 +517,5 @@ class ValidatorBuilderKt<T>(private val validatorBuilder: ValidatorBuilder<T>) { | |||
ValidatorBuilderKt(it).apply(block).validatorBuilder | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please add
@since 0.12.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, fixed
@@ -28,6 +28,7 @@ import java.time.LocalTime | |||
import java.time.OffsetDateTime | |||
import java.time.ZonedDateTime | |||
import java.time.temporal.ChronoUnit | |||
import java.util.function.Predicate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, soory. it's mistake 😢
5e80633
to
846454f
Compare
thanks :) |
Motivation
Kotlin DSL(ValidatorBuilderKt) is very cool and convient.
However, there are some method that ValidatorBuilder has but does not exist in ValidatorBuilderKt.
(For example,
constraintOnTarget
)Solution
Therefore, I want to be able to access the ValidatorBuilder held by the ValidatorBuilderKt.
Since there may be other methods that forget to support DSL in the future, I want to access ValidatorBuilder.