Closed Skyross closed 1 year ago
please check this using main and update the issue as required.
It is fixed! Tested with polyfactory=2.0.0
and it is working correctly:
from pydantic import BaseModel
from polyfactory.factories.pydantic_factory import ModelFactory
class Model(BaseModel):
field_name: str
limit: int
type(Model.__name__, (ModelFactory,), {"__model__": Model}).build()
Description
Looks like now it is not possible to build example of the model using
field_name
andmodel_field
names without getting this error:URL to code causing the issue
No response
MCVE
Steps to reproduce
Screenshots
No response
Logs
No response
Starlite Version
pydantic_factories-1.17.2
Platform