We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ff2140 commit 3ab5a3bCopy full SHA for 3ab5a3b
api/src/features/todo/use_cases/add_todo.py
@@ -11,13 +11,23 @@ class AddTodoRequest(BaseModel):
11
title="The title of the item",
12
max_length=300,
13
min_length=1,
14
- example="Read about clean architecture",
+ json_schema_extra={
15
+ "examples": ["Read about clean architecture"],
16
+ },
17
)
18
19
20
class AddTodoResponse(BaseModel):
- id: str = Field(example="vytxeTZskVKR7C7WgdSP3d")
- title: str = Field(example="Read about clean architecture")
21
+ id: str = Field(
22
23
+ "examples": ["vytxeTZskVKR7C7WgdSP3d"],
24
+ }
25
+ )
26
+ title: str = Field(
27
28
29
30
31
is_completed: bool = False
32
33
@staticmethod
0 commit comments