From b8c03d90f4df6a47a87ff0d6a2e3241029c9cd8a Mon Sep 17 00:00:00 2001 From: Konrad Cempura Date: Sun, 15 Jul 2018 23:22:44 +0200 Subject: [PATCH] Python 2.7: Copy list using slice --- openapi_core/schema/schemas/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi_core/schema/schemas/models.py b/openapi_core/schema/schemas/models.py index 4e37cde..b783cae 100644 --- a/openapi_core/schema/schemas/models.py +++ b/openapi_core/schema/schemas/models.py @@ -81,7 +81,7 @@ class Schema(object): ) def get_all_required_properties_names(self): - required = self.required.copy() + required = self.required[:] for subschema in self.all_of: subschema_req = subschema.get_all_required_properties()