Skip to content

Commit 5e23b55

Browse files
authored
Fix example override of SchemaGenerator.get_schema()
1 parent 2e721cd commit 5e23b55

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)