chore(vertex_ai): restore the mutable-ok reason on the tuple-items rewrite

This commit is contained in:
Bharadwaj Pendyala 2026-08-15 08:15:42 -05:00 committed by Bharadwaj
parent 68f0f4db7d
commit 0b3ea8f217

View file

@ -846,7 +846,7 @@ def _normalize_tuple_items(schema: dict[str, Any], depth: int = 0) -> None:
tuple_items: Final = schema.get("items", None)
if isinstance(tuple_items, list):
if tuple_items:
schema["items"] = {"anyOf": tuple_items}
schema["items"] = {"anyOf": tuple_items} # mutable-ok: the walkers below rewrite this subtree in place
else:
schema.pop("items")