mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Default OpenAPI version to the empty string (#6907)
This commit is contained in:
parent
c0cf37e35d
commit
4b30b32014
|
@ -151,7 +151,7 @@ class BaseSchemaGenerator(object):
|
||||||
# Set by 'SCHEMA_COERCE_PATH_PK'.
|
# Set by 'SCHEMA_COERCE_PATH_PK'.
|
||||||
coerce_path_pk = None
|
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('/'):
|
if url and not url.endswith('/'):
|
||||||
url += '/'
|
url += '/'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user