When I use fastapi and pydantic to build POST API, appear a TypeError: Object of type is not JSON serializable

前端 未结 0 1763
难免孤独
难免孤独 2020-12-10 15:59

I use FastAPi and Pydantic to model the requests and responses to an POST API.

I defined three class:

from pydantic import BaseModel, Field
from typing         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题