Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improved variable handling for config #332

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bombsimon
Copy link
Contributor

This allows an environment variable in any position for headers as long as it is in format $VAR or ${VAR} allowing alphanumeric characters and underscore _. This is now also applied to remote_schema_url in addition to headers.

Fixes #328
Relates to #231


I don't know if this is desired given what was said in #231 but the fix felt easy enough and I don't see much risk of pulling in re since it's a one time pass of the config which would be minimal compared to the rest where time is spent. Also didn't feel it added much more complexity.

This allows an environment variable in any position for headers as long
as it is in format `$VAR` or `${VAR}` allowing alphanumeric characters
and underscore `_`. This is now also applied to `remote_schema_url` in
addition to headers.

Fixes mirumee#328
Relates to mirumee#231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Env Variables in Remote Schema URL
1 participant