您可以使用 Config 和 schema_extra 为Pydantic模型声明一个示例,如Pydantic 文档:定制Schema 中所述: from typing import Optional from fastapi import FastAPI ...
確定! 回上一頁