For `title` and `version` I’d use properties inste...
# dsl
o
For
title
and
version
I’d use properties instead:
Copy code
openapi {
    info {
        title = "Swagger Petstore" 
        version = "1.0.0" 
    }
}
They don’t prevent setting property twice, but at least they convey familiar semantics, so if you set it twice, you essentially overwrite the value, which is quite expected