From d21f7afbd88cd7d8ada49bca8a7586ed84a05c14 Mon Sep 17 00:00:00 2001 From: Mopsan Date: Wed, 30 Sep 2020 15:12:27 +0300 Subject: [PATCH] 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 --- docs/api-guide/schemas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/schemas.md b/docs/api-guide/schemas.md index e39cd21a8..f9466285a 100644 --- a/docs/api-guide/schemas.md +++ b/docs/api-guide/schemas.md @@ -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