Skip to content

Commit 69320a5

Browse files
authored
Merge pull request #256 from linode/bugfix/resolve-refs-better
bug: Resolve nested refs
2 parents 9b7a170 + 3ea662b commit 69320a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

linodecli/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def _parse_args(self, node, prefix=[], args=None):
101101
continue # we can't edit this level of the tree
102102
if info.get('readOnly'):
103103
continue
104+
if '$ref' in info:
105+
info = self._resolve_ref(info['$ref'])
104106
path = '.'.join(prefix+[arg])
105107
args[path] = {
106108
"type": info.get('type') or 'string',

0 commit comments

Comments
 (0)