Skip to content

Add support for overriding optional variables with custom null sentinel#1

Open
night-crawler wants to merge 1 commit intomainfrom
env-parse-null
Open

Add support for overriding optional variables with custom null sentinel#1
night-crawler wants to merge 1 commit intomainfrom
env-parse-null

Conversation

@night-crawler
Copy link
Copy Markdown
Collaborator

Previously it was impossible to set a given optional to null from env.

APP__TWITTER__AVATAR=null cargo run --example hierarchical-env 

Copy link
Copy Markdown
Member

@athre0z athre0z left a comment

Choose a reason for hiding this comment

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

LGTM, ty! :)

@athre0z
Copy link
Copy Markdown
Member

athre0z commented Sep 11, 2025

May be worth a try to see whether upstream is interested in merging this as well?

Copy link
Copy Markdown
Member

@th0rex th0rex left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants