Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow configuring env letter case rules for settings parser #277
Issue derived from #275
The current workaround is to use the settings config class to set up aliases, e.g.:
class S(pydantic.BaseSettings): test:str class Config: fields = dict(test=dict(alias="test"))
However this is verbose and onerous to do (for the developer), if there are many such env vars.
It would be nice if the developer could do something like:
class S(pydantic.BaseSettings): class Config: letter_case = "lower" # or: "upper" | "any" test:str
About this concern raised for case insensitive option #275 (comment).