This is how it can be done with BaseModel. 2. . 3. from pydantic import BaseModel, Field. 4. class SomeSchema(BaseModel):.
確定! 回上一頁