Update schemas.md

Fix error:

ERROR Internal Server Error: /v1/openapi.json

TypeError at /v1/openapi.json
Exception Value: get_schema() takes 1 positional argument but 3 were given
This commit is contained in:
Mopsan 2020-09-30 15:12:27 +03:00 committed by GitHub
parent be87eb43b3
commit d21f7afbd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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