Hi again, The authorizationUrl from @SwaggerDefinition (securityDefinition) must be a compile time constant in Java/Scala, just because any value of an annotation needs to be evaluated at compilation. However, we may need for a different set of administrators and settings in each env (dev, qa, prod). Is there a way to take it at runtime e.g. from env vars, so that we have one deployable in all envs, configurable from env vars? I guess the question is, what alternate configuration means, other than annotations, should we use? Could part of the configuration be done in annotation, and the rest programatically (in an override manner maybe)? Thank you, Nicu M
On Friday, December 8, 2017 at 6:06:21 PM UTC+2, Nicolae Marasoiu wrote: > > Hi, > The authorizationUrl from @SwaggerDefinition (securityDefinition) must be > a compile time constant in Scala (is it the same in Java?). > Is there a way to take it at runtime e.g. from env vars, so that we have > one deployable in all envs, configurable from env vars? > Thank you, > Nicu M > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
