Skip to content

Strip unsupported schema fields#501

Merged
ali-sedaghatbaf merged 2 commits intomainfrom
upsupported-schema-fields
Mar 31, 2026
Merged

Strip unsupported schema fields#501
ali-sedaghatbaf merged 2 commits intomainfrom
upsupported-schema-fields

Conversation

@ali-sedaghatbaf
Copy link
Copy Markdown
Contributor

@ali-sedaghatbaf ali-sedaghatbaf commented Mar 31, 2026

Description

This pull request fixes an issue with the VertexAILLM integration where passing a Pydantic model with extra="forbid" as the response_format would previously cause a ParseError. The fix involves stripping unsupported JSON Schema fields (such as additionalProperties) before forwarding the schema to VertexAI's protobuf Schema type. Additionally, a utility function was introduced to recursively remove unsupported fields from the schema.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Documentation update
  • Project configuration change

Complexity

Complexity: low

How Has This Been Tested?

  • Unit tests
  • E2E tests
  • Manual tests

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • Documentation has been updated
  • Unit tests have been updated
  • E2E tests have been updated
  • Examples have been updated
  • New files have copyright header
  • CLA (https://neo4j.com/developer/cla/) has been signed
  • CHANGELOG.md updated if appropriate

@ali-sedaghatbaf ali-sedaghatbaf requested a review from a team as a code owner March 31, 2026 07:29
@ali-sedaghatbaf ali-sedaghatbaf changed the title Strip upsupported schema fields Strip unsupported schema fields Mar 31, 2026
@ali-sedaghatbaf ali-sedaghatbaf merged commit 07df667 into main Mar 31, 2026
14 checks passed
@ali-sedaghatbaf ali-sedaghatbaf deleted the upsupported-schema-fields branch March 31, 2026 07:46
ali-sedaghatbaf added a commit that referenced this pull request Mar 31, 2026
ali-sedaghatbaf added a commit that referenced this pull request Mar 31, 2026
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.

3 participants