Forum Discussion

tanz's avatar
tanz
New Contributor
2 months ago

How can we reference helm values in a static swagger file

i have tried 

components:
securitySchemes:
oauth:
type: oauth2
description: This API uses OAuth 2 with the implicit grant flow. [More info](https://api.example.com/docs/auth)
flows:
authorizationCode:
authorizationUrl: ${AUTHORIZATION_URL}
tokenUrl: ${TOKEN_URL}
scopes: {}

and also

components:
securitySchemes:
oauth:
type: oauth2
description: This API uses OAuth 2 with the implicit grant flow. [More info](https://api.example.com/docs/auth)
flows:
authorizationCode:
authorizationUrl: {{env "AUTHORIZATION_URL" }
tokenUrl: {{ env "TOKEN_URL" }}
scopes: {}

I have container for swagger, both above doesnt seem to work any ideas would be helpful
Thanks

No RepliesBe the first to reply