-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
Description
DSL mentioned in the documentation:
apiValidation {
@OptIn(kotlinx.validation.ExperimentalBCVApi::class)
klib {
enabled = true
}
}
works for Kotlin, but for some reason, when one wants to use it in Groovy, one should write it slightly differently:
apiValidation {
klib {
it.enabled = true
}
}
It looks like there is no particular reason for DSL having it.enabled = true
instead of just enabled = true
.