We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba40cb commit 4bbe4d1Copy full SHA for 4bbe4d1
automapper/extensions/pydantic.py
@@ -5,7 +5,7 @@
5
6
7
def spec_function(target_cls: Type[BaseModel]) -> Iterable[str]:
8
- return (field_name for field_name in getattr(target_cls, "__fields__"))
+ return (field_name for field_name in target_cls.model_fields)
9
10
11
def extend(mapper: Mapper) -> None:
0 commit comments