diff --git a/ninja/openapi/schema.py b/ninja/openapi/schema.py index 65405948..856c776a 100644 --- a/ninja/openapi/schema.py +++ b/ninja/openapi/schema.py @@ -340,8 +340,7 @@ def flatten_properties( if len(prop_details["allOf"]) == 1 and "enum" in prop_details["allOf"][0]: # is_required = "default" not in prop_details yield prop_name, prop_details, prop_required - else: - # pragma: no cover + else: # pragma: no cover # TODO: this code was for pydanitc 1.7+ ... <2.9 - check if this is still needed for item in prop_details["allOf"]: yield from flatten_properties("", item, True, definitions)