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.
2 parents aba40cb + 4bbe4d1 commit 0f46d1eCopy full SHA for 0f46d1e
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