I have a case where one of my pydantic models is inheriting from two parents, and I don't think autodoc-pydantic is rendering the inherited fields:
In the case like the example below, where the child has no fields of its own, the autoclass is empty
If the child model has its own fields, autodoc only seems to renders those defined directly on that child
from pydantic import BaseModel
class MyFirstParent(BaseModel):
x: str
y: int
class MySecondParent(BaseModel):
z: str
class MyFirstAlias(MyFirstParent, MySecondParent):
pass
I have a case where one of my pydantic models is inheriting from two parents, and I don't think autodoc-pydantic is rendering the inherited fields: