Skip to content

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

@inean

Description

@inean

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"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions