File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff 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
3222class 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
6030class NewComment (BaseModel ):
6131 """User comment on a post."""
You can’t perform that action at this time.
0 commit comments