Default OpenAPI version to the empty string (#6907)

This commit is contained in:
Tom Christie 2019-09-04 12:53:50 +01:00 committed by GitHub
parent c0cf37e35d
commit 4b30b32014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ class BaseSchemaGenerator(object):
# Set by 'SCHEMA_COERCE_PATH_PK'.
coerce_path_pk = None
def __init__(self, title=None, url=None, description=None, patterns=None, urlconf=None, version='0.1.0'):
def __init__(self, title=None, url=None, description=None, patterns=None, urlconf=None, version=''):
if url and not url.endswith('/'):
url += '/'