mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-28 19:19:23 +00:00
Consistently yield tuples of variable_name and variable
This commit is contained in:
parent
48dba2c576
commit
821f14e84b
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class ServerVariablesGenerator(object):
|
|||
variables_deref = self.dereferencer.dereference(variables_spec)
|
||||
|
||||
if not variables_deref:
|
||||
return [Server('/'), ]
|
||||
return
|
||||
|
||||
for variable_name, variable_spec in iteritems(variables_deref):
|
||||
default = variable_spec['default']
|
||||
|
|
Loading…
Reference in a new issue