Skip to content

fix(py): support list-valued schema types in tool signatures#3815

Merged
Alberto Schiabel (jkomyno) merged 2 commits into
nextfrom
fix/python-list-schema-types
Jul 13, 2026
Merged

fix(py): support list-valued schema types in tool signatures#3815
Alberto Schiabel (jkomyno) merged 2 commits into
nextfrom
fix/python-list-schema-types

Conversation

@jkomyno

Copy link
Copy Markdown
Collaborator

This PR:

Context

JSON Schema Draft 2020-12 and OpenAPI 3.1 allow type to be an array. The previous parser passed that list to a dictionary lookup, raising TypeError: unhashable type: 'list'. This replacement covers the direct case from #3754 and the same shape nested in a combiner.

Normalize list-valued JSON Schema types in both direct and combiner paths, preventing unhashable-list failures while preserving the existing fallback behavior.

Co-authored-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jul 13, 2026 12:55pm

Request Review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7d4d50f. Configure here.

Comment thread python/composio/utils/shared.py Outdated
@sparkle-code-security

Copy link
Copy Markdown
Review Summary · Total 0 · 🟤 Critical 0 · 🔴 High 0

Blast Radius Analysis No connected services identified. Changes appear isolated to the current repository.

Use scalar fallback defaults for single-item JSON Schema type lists while preserving explicit defaults and multi-type union behavior.
@sparkle-code-security

Copy link
Copy Markdown
Review Summary · Total 0 · 🟤 Critical 0 · 🔴 High 0

Blast Radius Analysis No connected services identified. Changes appear isolated to the current repository.

@jkomyno Alberto Schiabel (jkomyno) merged commit 3a5e62f into next Jul 13, 2026
24 checks passed
@jkomyno Alberto Schiabel (jkomyno) deleted the fix/python-list-schema-types branch July 13, 2026 13:00
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.

1 participant