summaryrefslogtreecommitdiff
path: root/schemas.py
diff options
context:
space:
mode:
Diffstat (limited to 'schemas.py')
-rw-r--r--schemas.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/schemas.py b/schemas.py
index fe7bee2..b21c1f0 100644
--- a/schemas.py
+++ b/schemas.py
@@ -6,8 +6,8 @@ from typing import Optional, List, Dict
# Ingredient Schemas
class IngredientCreate(BaseModel):
name: str
- quantity: float
- unit: str
+ quantity: float = 1.0
+ unit: str = ""
category: Optional[str] = None
expiry_date: Optional[date] = None