-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I think your DSL could benefit greatly from using a DSLMarker annotation.
Consider defining an annotation like:
@Target(AnnotationTarget.CLASS, AnnotationTarget.TYPE, AnnotationTarget.FUNCTION)
@DslMarker
annotation class OpenApiDsl
Then annotate the API receiver lambdas like:
fun OpenAPI.paths(init: @OpenApiDsl Paths.() -> Unit) {
paths = paths ?: Paths()
paths.init()
}
Sadly, this could potentially break existing code.
Metadata
Metadata
Assignees
Labels
No labels