Add 'terms_of_service' parameter

Add 'terms_of_service' parameter
Detail: https://swagger.io/specification/#infoObject
This commit is contained in:
Mopsan 2020-04-23 01:05:15 +03:00 committed by GitHub
parent 676aa77223
commit 2b0d5e6e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ from .inspectors import DefaultSchema # noqa
def get_schema_view(
title=None, url=None, description=None, urlconf=None, renderer_classes=None,
title=None, description=None, terms_of_service=None, url=None, urlconf=None, renderer_classes=None,
public=False, patterns=None, generator_class=None,
authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES,
permission_classes=api_settings.DEFAULT_PERMISSION_CLASSES,
@ -43,7 +43,7 @@ def get_schema_view(
generator_class = openapi.SchemaGenerator
generator = generator_class(
title=title, url=url, description=description,
title=title, description=description, terms_of_service=terms_of_service, url=url,
urlconf=urlconf, patterns=patterns, version=version
)