orangy
title
and version
I’d use properties instead:
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