Fix example override of SchemaGenerator.get_schema()

This commit is contained in:
Mopsan 2020-10-09 11:38:11 +03:00 committed by GitHub
parent 2e721cdbc8
commit 5e23b559f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,8 +181,8 @@ dictionary For example you might wish to add terms of service to the [top-level
```
class TOSSchemaGenerator(SchemaGenerator):
def get_schema(self):
schema = super().get_schema()
def get_schema(self, *args, **kwargs):
schema = super().get_schema(*args, **kwargs)
schema["info"]["termsOfService"] = "https://example.com/tos.html"
return schema
```