mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
default value for path field is '' instead of None
This commit is contained in:
parent
9e72736af8
commit
ff6c0cee90
|
@ -553,7 +553,7 @@ class SchemaGenerator(object):
|
|||
name=variable,
|
||||
location='path',
|
||||
required=True,
|
||||
schema=schema_cls(title=title, description=description, **kwargs)
|
||||
schema=schema_cls(title=title, description=description, default='', **kwargs)
|
||||
)
|
||||
fields.append(field)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user