Skip to content

fix: reject unsupported response schemas on Vertex AI - #2896

Draft
medisean wants to merge 1 commit into
googleapis:mainfrom
medisean:codex/reject-unsupported-response-schemas
Draft

fix: reject unsupported response schemas on Vertex AI#2896
medisean wants to merge 1 commit into
googleapis:mainfrom
medisean:codex/reject-unsupported-response-schemas

Conversation

@medisean

Copy link
Copy Markdown

Closes #2889

Vertex AI structured output does not support arbitrary additionalProperties response schemas, but the client previously allowed them and could return empty dictionaries at runtime. Reject these schemas before sending the request, with an error that identifies the supported mode.

Validation:

  • python3 -m compileall -q google/genai
  • git diff --check
  • The targeted pytest could not run locally because the environment is missing google.auth.

@google-cla

google-cla Bot commented Aug 23, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vertex structured output silently returns empty dict-typed fields (additionalProperties)

1 participant