SMILEY4 / ktor-swagger-ui

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

Question. Auto generation of examples. #129

Closed perracodex closed 1 month ago

perracodex commented 2 months ago

Is there any setting to auto generate the examples instead of having to define each manually? So that for example, when specifying in a response let's say body<List<Pet>>, it can generate automatically the example for Pet Thanks

SMILEY4 commented 2 months ago

Hi, no, this is not supported. I don't think this would be a "simple" feature and is probably not in the scope of this plugin.