Closed Giuliopime closed 1 year ago
Thanks a lot! The responsible code should be in builder/route/RouteCollector.kt#getPath (probably line 66.)
Do you plan to release the bug fix? @SMILEY4
Yes, ill create it probably tomorrow or until end of this week 👍
If you have a route that uses ktor
Resources
for type safe routes, the properties of the data class describing the resource are added to the route string generated for swagger.For example:
Will generate
Even though that is a query parameter, not a path parameter, and I properly described it in the OpenApiDocs of that route
Which part of the lib is responsible from doing this? The resources data classes should be converted to string using only the
path
from the@Resource
annotation, and ignore every other property of the data class. I can open a PR if pointed in the right direction to resolve this 👍🏼