Skip to content

Commit

Permalink
Default OpenAPI version to the empty string (encode#6907)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie authored and sigvef committed Dec 3, 2022
1 parent 1a02d9a commit eace4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/schemas/generators.py
Expand Up @@ -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 += '/'

Expand Down

0 comments on commit eace4fe

Please sign in to comment.