I started from implementation of the ktor-swagger library
https://github.com/nielsfalk/ktor-swagger
This library manages security specifications globally.
I would like to integrate it with the specific definition for each individual route.
https://swagger.io/docs/specification/authentication/
This library uses a wrapper built around ktor locations and builds the swagger / openapi tree at runtime.
What I was asking is if there is the possibility to intercept if a Route is declared under authenticate (...) or not to pass this information to the library structure.