Skip to content

ApplicationIntegrationToolset Throws Pydantic Validation Error with SharePoint Integration #3704

@IAGOVP

Description

@IAGOVP

Hi everybody!

A few days ago, I have faced such errors while using the Pydantic Valdiation

Initializing ApplicationIntegrationToolset using an OAuth-enabled SharePoint connector leads to a pydantic_core.ValidationError. This issue appears tied to schema parsing within google-adk: the library’s OpenApiSpecParser generates Schema(type='Any'), which violates the stricter type requirements introduced in Pydantic ≥ 2.11. As a result, tool initialization fails before the connector can be used.

Validation error details:

Pydantic rejects "Any" because only specific literal types are supported.

Schema creation fails inside ADK while processing the connector's OpenAPI specification.

Steps to reproduce:

Create a SharePoint connector in GCP Integration Connectors (OAuth with AzureAD).

Authenticate and confirm the connector is Active.

Attempt to initialize the toolset with the connector’s configuration.

Looking forward to hearing from you.
Best

Metadata

Metadata

Assignees

Labels

core[Component] This issue is related to the core interface and implementationrequest clarification[Status] The maintainer need clarification or more information from the author

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions