We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccba388 commit c2674b5Copy full SHA for c2674b5
.generator/src/generator/openapi.py
@@ -255,7 +255,7 @@ def get_references_for_model(model, model_name):
255
for key, definition in model.get("properties", {}).items():
256
if definition.get("type") == "object" or definition.get("enum") or definition.get("oneOf"):
257
name = formatter.get_name(definition)
258
- if name and not definition.get("additionalProperties"):
+ if name and not (definition.get("additionalProperties", False) != False and not definition.get("properties")):
259
result.append(name)
260
elif definition.get("properties") and top_name:
261
result.append(top_name + formatter.camel_case(key))
0 commit comments