SMILEY4 / ktor-swagger-ui

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

Add vararg shotcut for adding tags #113

Closed Him188 closed 4 months ago

Him188 commented 5 months 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 4 months ago

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