It's not documented, but you can make non- pydantic classes work with fastapi . What you need to do is: create a proxy BaseModel , and tell Foo to offer it ...
確定! 回上一頁