model_validate_doc
consider field(default=...)
but not field(default_factory=...)
#507
Labels
bug
Something isn't working
Bug
When defining fields with a
default
parameter, themodel_validate_doc
function works as it should, but when usingdefault_factory
the function treats it as a mandatory field.Current Behavior
Expected behavior
Environment
python -c "import pydantic.utils; print(pydantic.utils.version_info())
):The text was updated successfully, but these errors were encountered: