5

fastapi+pydantic+sqlalchemy 如何返回列表数据?

 2 years ago
source link: https://www.v2ex.com/t/822594
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Python

fastapi+pydantic+sqlalchemy 如何返回列表数据?

  SystemLight · SystemLight · 21 小时 22 分钟前 · 278 次点击
  • pydantic 可以格式化 ORM 模型,但是如何能返回列表类型
  • [Model,Model,Model] 这种格式如何通过 pydantic 验证

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK