Skip to content

Conversation

@gsakkis
Copy link
Contributor

@gsakkis gsakkis commented Feb 8, 2025

New setting to limit the parsing of nested env vars split by env_nested_delimiter up to a given nesting depth.

The main use case is to allow env_nested_delimiter='_' to work with fields that contain underscores, as proposed here.

Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The style guide flagged several spelling errors that seemed like false positives. We skipped posting inline suggestions for the following words:

  • [Ss]ubstring

@hramezani
Copy link
Member

Thanks @gsakkis for this PR.

I left some comments.

@gsakkis gsakkis changed the title Add env_nested_depth setting Add env_nested_max_split setting Feb 11, 2025
@hramezani hramezani merged commit ccf99b2 into pydantic:main Feb 11, 2025
23 checks passed
@gsakkis gsakkis deleted the env_nested_depth branch February 18, 2025 07:12
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.

2 participants