Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # Fastapi Response Model <code> class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class Config: schema_extra = { "example": { "name": "Foo", "description": "A very nice Item", "price": 35.4, "tax": 3.2, } } </code> open/fastapi-response-model.txt Last modified: 2024/10/05 06:15by 127.0.0.1