Skip to content

Klib validation DSL for Groovy is different #214

@sandwwraith

Description

@sandwwraith

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions