Update docs/api-guide/schemas.md

Co-authored-by: Adam Johnson <me@adamj.eu>
This commit is contained in:
Mopsan 2020-10-09 10:26:28 +03:00 committed by GitHub
parent d21f7afbd8
commit f4c3d69430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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