From 459908e6832ff2dbd5c047af96b7d43b16fbede3 Mon Sep 17 00:00:00 2001 From: Shina Akinboboye Date: Tue, 27 May 2025 15:24:14 -0400 Subject: [PATCH] 4292 --- polyapi/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/polyapi/utils.py b/polyapi/utils.py index 2ea11a2..b9ffa7f 100644 --- a/polyapi/utils.py +++ b/polyapi/utils.py @@ -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":