Add required details

This commit is contained in:
Jacob Windsor committed 2025-02-19 17:16:00 +01:00
1 parent 8a4c6c474b
commit 9cbbdcf323
3 files changed
+17

No files matched your search

+11
View File
@@ -21,3 +21,14 @@ class HouseCreateRequest(BaseModel):
description="Description of the house",
examples=["A beautiful 3-bedroom house"],
)
square_feet: float = Field(
...,
description="Square footage of the house",
examples=[1500.00],
)
bedrooms: int = Field(
..., description="Number of bedrooms in the house", examples=[3]
)
bathrooms: float = Field(
..., description="Number of bathrooms in the house", examples=[2.5]
)