Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Dec 6, 2024
1 parent a034931 commit 9a71035
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion linodecli/baked/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ def _parse_response_model(schema, prefix=None, nested_list_depth=0):
for k, v in schema.properties.items():
pref = prefix + "." + k if prefix else k

if v.type == "object" and v.properties is None and v.additionalProperties is not None:
if (
v.type == "object"
and v.properties is None
and v.additionalProperties is not None
):
# This is a dictionary with arbitrary keys
attrs.append(
OpenAPIResponseAttr(
Expand Down

0 comments on commit 9a71035

Please sign in to comment.