Closed max-f closed 5 months ago
Hi, a rate limited endpoint like
routing { rateLimit(RateLimitName("limit")) { rateLimitedRoutes() } } fun Route.rateLimitedRoutes() { route("/rated") { get("hello", { description = "Returns a rated greeting" tags = setOf("Public") }) { call.respondText("ratedHello") } } }
seems to result in a wrong path in the generated openapi spec / swagger-ui:
Is there a way to 'overwrite' or otherwise circumvent that behavior?
Hi, you can ignore parts of the route in the plugin config using ignoredRouteSelectors. You can add the rate limiter routeSelector to this list and it will not be included in the spec.
ignoredRouteSelectors
Hi, a rate limited endpoint like
seems to result in a wrong path in the generated openapi spec / swagger-ui:
Is there a way to 'overwrite' or otherwise circumvent that behavior?