-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
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