We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5fc4d1 + e4d6ebf commit 568677bCopy full SHA for 568677b
src/openapi_python_generator/language_converters/python/model_generator.py
@@ -163,8 +163,10 @@ def type_converter( # noqa: C901
163
converted_type = retVal + "]" + post_type
164
elif schema.type == "object":
165
converted_type = pre_type + "Dict[str, Any]" + post_type
166
- elif schema.type is None or schema.type == "null":
+ elif schema.type == "null":
167
converted_type = pre_type + "None" + post_type
168
+ elif schema.type is None:
169
+ converted_type = pre_type + "Any" + post_type
170
else:
171
raise TypeError(f"Unknown type: {schema.type}")
172
0 commit comments