Python pydantic, make every field of ancestor are Optional

后端 未结 0 1160
广开言路
广开言路 2021-01-22 05:18

I have 2 classes:

class UserCreate(BaseModel):
    avatar: HttpUrl = Field(..., description="Avatar", example="https://picsum.photos/200")
            


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