Skip to content

Commit b8cdc3a

Browse files
author
Adetokunbo Ige
committed
chore: update policy
Signed-off-by: Adetokunbo Ige <[email protected]>
1 parent 083b508 commit b8cdc3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

todo-app/lambda_function/lambda.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030

3131
# Define a Pydantic model for a todo item
3232
class TodoItem(BaseModel):
33-
id: str
33+
id: Optional[str] # Make 'id' optional
3434
text: str
35-
timestamp: int
35+
completed: bool
36+
timestamp: Optional[int] # Make 'timestamp' optional
3637

3738
@app.get("/todos", response_model=List[TodoItem])
3839
async def get_todos():

0 commit comments

Comments
 (0)