Skip to content

Validation error with Copilot Agent: "tool parameters array type must have items" #25

@ar90n

Description

@ar90n

Thanks for your great project. When I used this tool, I met an issue as following.

Description

When using Copilot Agent, the following validation error occurs:

Failed to validate tool f1e_create_container: Error: tool parameters array type must have items

Workaround

This issue no longer occurs with the following workaround:

🔗 ar90n@4d55aa9

This fix adds an empty items field next to prefixItems, which resolves the issue in environments with strict JSON Schema validation.

Cause

The schema generated for tuple[str, int] includes only prefixItems without an items field, which violates the expectations of some JSON Schema validators (such as the one used by Copilot Agent).

Proposal

Would it be okay for me to open a PR that adds items: {} where prefixItems is used?

If you're okay with that, feel free to assign this issue to me.

Thanks for the great project!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions