SMILEY4 / ktor-swagger-ui

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

Allowing examples to be set #33

Closed aleksa-djurdjulov closed 1 year ago

aleksa-djurdjulov commented 1 year ago

Is it possible to allow example values to be set for parameters?

I believe there is a related bug here at this line. This makes it so that an example is set to true/false, but the purpose of the parameter is not that and it is explained on this line.

SMILEY4 commented 1 year ago

Hi, thank you for finding and reporting this. It seems like these two parameters (example and explode) got mixed up. I quickly created a new version (1.3.1) which fixes this and allows example values to be set for parameters.