SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI
Apache License 2.0
150 stars 25 forks source link

Add vararg shotcut for adding tags #113

Closed Him188 closed 1 month ago

Him188 commented 1 month ago

Currently, adding tags requires writting listOf.

get({
    tags = listOf("API Key")
    summary = "Get API Key list"
})

I think this is better:

get({
    tags("API Key")
    summary = "Get API Key list"
})
SMILEY4 commented 1 month ago

hi, thanks for your suggestions. I added some improvements / alternatives to the dsl which are included in version 3.2.0.