mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-29 01:20:02 +03:00
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:
parent
be87eb43b3
commit
d21f7afbd8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user