Skip to content
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

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

be-hase
Copy link
Contributor

@be-hase be-hase commented Jun 7, 2022

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.

@making making added the enhancement New feature or request label Jun 7, 2022
@making making modified the milestones: 0.11.4, 0.12.0 Jun 7, 2022
@making
Copy link
Owner

making commented Jun 7, 2022

Thanks for your contribution!
Looks good to me

@@ -517,4 +517,5 @@ class ValidatorBuilderKt<T>(private val validatorBuilder: ValidatorBuilder<T>) {
ValidatorBuilderKt(it).apply(block).validatorBuilder
}

Copy link
Owner

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

Copy link
Contributor Author

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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused class?

Copy link
Contributor Author

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 😢

@making making changed the title Add unwrap method to access ValidatorBuilder Add unwrap method to access ValidatorBuilder from Kotlin DSL Jun 7, 2022
@making making merged commit f1c88c8 into making:develop Jun 7, 2022
@be-hase be-hase deleted the add-unwrap-method branch June 8, 2022 03:06
@be-hase
Copy link
Contributor Author

be-hase commented Jun 8, 2022

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants