mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-29 11:09:25 +00:00
Python 2.7: Copy list using slice
This commit is contained in:
parent
88efa69cfd
commit
b8c03d90f4
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue