Skip to content
Merged

4292 #47

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion polyapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,11 @@ def get_type_and_def(

title = f"List[{title}]"
return wrapped_generate_schema_types(schema, title, "List")
elif schema.get("properties"):
result = wrapped_generate_schema_types(schema, "ResponseType", "Dict") # type: ignore
return result
else:
return "Any", ""
return "Dict", ""
else:
return "Dict", ""
elif type_spec["kind"] == "function":
Expand Down