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: Add Support for complex list defined from env vars #376

Open
inean opened this issue Sep 2, 2024 · 1 comment
Open

feat: Add Support for complex list defined from env vars #376

inean opened this issue Sep 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@inean
Copy link

inean commented Sep 2, 2024

Currently , only list of complex types can only be defined completely from env vars as Json values. The idea is to also allow
to define using nested delimiters, where index is explicitly defined in env vars:

class SubType(BaseSettings):
    v1 :str 

class Config(Settings):
   top: list[SubType]

then, something like this should work...

CONFIG__0__TOP="foo"
@inean
Copy link
Author

inean commented Sep 2, 2024

PR #377

@hramezani hramezani added enhancement New feature or request and removed unconfirmed labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants