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
When attempting to create a config with a submodel named "api", an error occurs:
pydantic_settings.sources.SettingsError: error parsing value for field "api" from source "EnvSettingsSource"
How to reproduce:
from pydantic import BaseModel from pydantic_settings import BaseSettings class ApiConfig(BaseModel): foo: str class Config(BaseSettings): api: ApiConfig = ApiConfig() Config()
Changing submodel name fixes the problem.
The text was updated successfully, but these errors were encountered:
dmontagu
No branches or pull requests
When attempting to create a config with a submodel named "api", an error occurs:
How to reproduce:
Changing submodel name fixes the problem.
The text was updated successfully, but these errors were encountered: