Skip to content

Commit

Permalink
fix: make todo title required, not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianvitterso committed Nov 11, 2022
1 parent 2c8e006 commit bc8dab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/features/todo/use_cases/add_todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class AddTodoRequest(BaseModel):
title: str = Field(
"title",
...,
title="The title of the item",
max_length=300,
min_length=1,
Expand Down

0 comments on commit bc8dab6

Please sign in to comment.