polyfactory
polyfactory copied to clipboard
feat: support pydantic by_name
Description
- This adds support to use
BaseModel.model_validate(..., by_name). This unblocks use cases where the model names are not valid python identifiers - Set to False for backwards compatibility but may want to change this to true in future major release
Closes
- Closes https://github.com/litestar-org/polyfactory/issues/713
- Closes https://github.com/litestar-org/polyfactory/issues/746