Skip to content

Commit 6b8bc12

Browse files
committed
Remove JSON schema config for CoffeeDonation.
1 parent 362fde8 commit 6b8bc12

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

database/schemas.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ class CoffeeDonation(BaseModel):
1818
coffee_id: int = Field(None, example=3453543)
1919
# fmt: on
2020

21-
class Config:
22-
json_schema_extra = {
23-
"name": "Fake Todd",
24-
"email": "fake@example.com",
25-
"count": 1,
26-
"message": "Great tutorials but this is a test message.",
27-
"link": "https://buymeacoffee.com/hackersslackers/c/405127",
28-
"coffee_id": 405127,
29-
}
30-
3121

3222
class AllCoffeeDonations(BaseModel):
3323
"""All `BuyMeACoffee` donations."""
@@ -36,26 +26,6 @@ class AllCoffeeDonations(BaseModel):
3626
all_donations: List[CoffeeDonation]
3727
# fmt: on
3828

39-
class Config:
40-
json_schema_extra = [
41-
{
42-
"name": "Fake Todd",
43-
"email": "fake@example.com",
44-
"count": 1,
45-
"message": "Great tutorials but this is a test message.",
46-
"link": "https://buymeacoffee.com/hackersslackers/c/100000",
47-
"coffee_id": 100000,
48-
},
49-
{
50-
"name": "Firstname Lastname",
51-
"email": "firstname.lastname@example.com",
52-
"count": 2,
53-
"message": "Thank you for the tutorials!",
54-
"link": "https://buymeacoffee.com/hackersslackers/c/100001",
55-
"coffee_id": 100001,
56-
},
57-
]
58-
5929

6030
class NewComment(BaseModel):
6131
"""User comment on a post."""

0 commit comments

Comments
 (0)