From ff6c0cee903ea093d6a303d64f73119f93ca83e8 Mon Sep 17 00:00:00 2001 From: Avraham Date: Mon, 19 Jun 2017 14:53:52 +0300 Subject: [PATCH] default value for path field is '' instead of None --- rest_framework/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index 875f9454b..2773387d6 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -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)