From fed49634f9aaf6b0533b37b24abbf46627d86c48 Mon Sep 17 00:00:00 2001 From: espinetandreu <116800856+espinetandreu@users.noreply.github.com> Date: Wed, 15 Apr 2026 00:27:44 +0200 Subject: [PATCH] test: update test_build_vertex_schema to expect items on bare arrays The process_items fix now ensures type=array always has an items field, so update the existing test expectation for callbacks.anyOf[0] to include items: {type: string}. --- .../test_litellm/llms/vertex_ai/test_vertex_ai_common_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/vertex_ai/test_vertex_ai_common_utils.py b/tests/test_litellm/llms/vertex_ai/test_vertex_ai_common_utils.py index d483a81a349..3912eeb327b 100644 --- a/tests/test_litellm/llms/vertex_ai/test_vertex_ai_common_utils.py +++ b/tests/test_litellm/llms/vertex_ai/test_vertex_ai_common_utils.py @@ -225,7 +225,7 @@ def test_build_vertex_schema(): "metadata": {"type": "object"}, "callbacks": { "anyOf": [ - {"type": "array", "nullable": True}, + {"type": "array", "nullable": True, "items": {"type": "string"}}, {"type": "object", "nullable": True}, ] },