File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class CreateBookResponse(BaseModel):
11
11
book : Book
12
12
13
13
class Config :
14
- schema_extra = {
14
+ json_schema_extra = {
15
15
"example" : {
16
16
"title" : "The Hitchhiker's Guide to the Galaxy" ,
17
17
"author_name" : "Douglas Adams" ,
@@ -25,7 +25,7 @@ class CreateBookRequest(BaseModel):
25
25
author_name : str
26
26
27
27
class Config :
28
- schema_extra = {
28
+ json_schema_extra = {
29
29
"example" : {
30
30
"title" : "The Hitchhiker's Guide to the Galaxy" ,
31
31
"author_name" : "Douglas Adams" ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class PingResponse(BaseModel):
8
8
ping : str
9
9
10
10
class Config :
11
- schema_extra = {
11
+ json_schema_extra = {
12
12
"example" : {
13
13
"ping" : "pong!" ,
14
14
}
You can’t perform that action at this time.
0 commit comments