Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Support type array for overriding environments variables #42

Open
tduyng opened this issue Mar 21, 2022 · 1 comment
Open

Support type array for overriding environments variables #42

tduyng opened this issue Mar 21, 2022 · 1 comment

Comments

@tduyng
Copy link

tduyng commented Mar 21, 2022

For now we only support number and boolean types for overriding environments variables.

It will be helpful if we could support also the array type. Thanks!

@Crow-EH
Copy link

Crow-EH commented Mar 21, 2022

+1.

We could parse env variables into arrays when type: array, and require comma separated values.

e.g.

env_mapping.yaml :

MY_ARRAY:
  key: myArray
  type: array

and env var :

MY_ARRAY="foo,bar,fizz,buzz"

would be equivalent to this in the yaml config :

myArray:
  - foo
  - bar
  - fizz
  - buzz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants