Skip to content

Commit 9ae0b99

Browse files
Mopsansigvef
authored andcommitted
Fix example override of SchemaGenerator.get_schema()
1 parent 924a415 commit 9ae0b99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api-guide/schemas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ dictionary For example you might wish to add terms of service to the [top-level
181181

182182
```
183183
class TOSSchemaGenerator(SchemaGenerator):
184-
def get_schema(self):
185-
schema = super().get_schema()
184+
def get_schema(self, *args, **kwargs):
185+
schema = super().get_schema(*args, **kwargs)
186186
schema["info"]["termsOfService"] = "https://example.com/tos.html"
187187
return schema
188188
```

0 commit comments

Comments
 (0)