Closed Him188 closed 2 months ago
Oh I found https://github.com/SMILEY4/ktor-swagger-ui/wiki/Request-and-Response-Bodies-Basics#swagger-schema-annotation which worked for my use case.
However I had to manually add swagger dependency like
implementation("io.swagger.core.v3:swagger-core:2.2.21")
Hi, thank you. I'm currently working on version 3 which will have some more own annotations besides the swagger ones.
Should be resolved with 3.0.0-beta3 (https://github.com/SMILEY4/ktor-swagger-ui/releases/tag/3.0.0-beta3)
I loved the annotation
@Example
(and this library! very intuitive and useful)Creating a custom schema can be a bit verbose when we only want to add a simple description. Why not add a
@Description
?Sample usage: