Skip to content

Support for lists in environment variable overrides #2

Description

@gabe-l-hart

Is your feature request related to a problem? Please describe.

Currently, aconfig ignores lists when performing environment variable overrides. This is not ideal and should be fixed!

Describe the solution you'd like

Given a config like the following:

foo: []

You should be able to set foo with export FOO="[a,b,c]" and have "[a,b,c]" be parsed as yaml.

Describe alternatives you've considered

  • You could do a simpler parsing scheme and just split on strings, but this would make typing for nested objects complex
  • You could do index-based overrides for lists of objects, but this could also get quite complex to the tune of full jsonpatch or patchStrategicMerge support.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions