We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Settings Management in docs (https://docs.pydantic.dev/latest/usage/pydantic_settings/) there is information about two ways of setting up an alias for environment variable name. Only one is present in code attached in docs.
There are two ways to do this: Using Field(alias=...) (see api_key above) Using Field(validation_alias=...) (see auth_key above)
There are two ways to do this:
Using Field(alias=...) (see api_key above) Using Field(validation_alias=...) (see auth_key above)
Adding something like api_key: str = Field(..., alias='my_api_key') to presented code would fix orphaned mention.
api_key: str = Field(..., alias='my_api_key')
Should I submit PR?
Selected Assignee: @Kludex
Selected Assignee: @hramezani
The text was updated successfully, but these errors were encountered:
Sure. Thanks! :)
Sorry, something went wrong.
Fix for issue pydantic#145
6a03585
Fix for #145 - code for mentioned variable in Settings Management (#146)
e100905
Co-authored-by: Hasan Ramezani <[email protected]>
Closed in e100905
hramezani
Kludex
No branches or pull requests
In Settings Management in docs (https://docs.pydantic.dev/latest/usage/pydantic_settings/) there is information about two ways of setting up an alias for environment variable name.
Only one is present in code attached in docs.
Adding something like
api_key: str = Field(..., alias='my_api_key')
to presented code would fix orphaned mention.Should I submit PR?
Selected Assignee: @Kludex
Selected Assignee: @hramezani
The text was updated successfully, but these errors were encountered: