Closed utkini closed 6 months ago
@utkini, thanks for reporting this!
@hramezani, could you take a look at this discrepancy? Thanks!
It is not a mistake. it is a design decision to raise ValidationError
in case of extra values
Got it,
I rather wanted to suggest, maybe change the description of this parameter to forbid
here?
This is for pydantic-settings
and pydantic
has different extra default.
So, no need to change the description on pydantic.
Hello!
I think I found a small mistake in method documentation:
pydantic
says that theextra
parameter will beignore
by default, butpydantic_settings
sets this extra parameter toforbid
by default