Skip to content

Commit 891b72a

Browse files
committed
review comment
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
1 parent 0831bcc commit 891b72a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mellea/backends/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,8 +936,8 @@ def _is_complex_anyof(v: dict) -> bool:
936936
# Skip null types - they just indicate optionality
937937
if sub_schema.get("type") == "null":
938938
continue
939-
# Check for references, nested properties, or allOf (inherited models)
940-
if "$ref" in sub_schema or "properties" in sub_schema or "allOf" in sub_schema:
939+
# Check for references or nested properties (don't recursively check allOf)
940+
if "$ref" in sub_schema or "properties" in sub_schema:
941941
return True
942942
return False
943943

0 commit comments

Comments
 (0)