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 99f1e4d899
commit 99636a7c60

View file

@ -895,7 +895,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")