docs(typo): Field(validate_defaults=True)
should be validate_default=True
#7228
Labels
Field(validate_defaults=True)
should be validate_default=True
#7228
Initial Checks
Description
Got a bit confused about validation of defaults which I knew I'd seen, firstly I expected it to be in the section on model config (maybe an opportunity to put a link in there to the validators section?)
When I looked around some more I was led to Validation of default values¶:
I ran the code section as written
after scratching my head for a second I realised there's a typo, in the 2nd usage it changes to the correct form:
Looks like a single instance
pydantic/docs/usage/validators.md
Line 269 in d110b47
Example Code
No response
Python, Pydantic & OS Version
Selected Assignee: @hramezani
validators.md
to correctvalidate_default
kwarg #7229The text was updated successfully, but these errors were encountered: