Skip to content

Conversation

@jba
Copy link
Collaborator

@jba jba commented Aug 25, 2025

The intial map of schemas should not be modified during inference. The schemas that get created during the walk may have keywords set, like "description", that should not appear elsewhere in the parent.

We don't need to add to the schemas map to detect cycles: we already have seen for that.

Fixes modelcontextprotocol/go-sdk#366.

The intial map of schemas should not be modified during inference.
The schemas that get created during the walk may have keywords set,
like "description", that should not appear elsewhere in the parent.

We don't need to add to the schemas map to detect cycles: we already
have `seen` for that.
@jba jba merged commit 748c325 into main Aug 25, 2025
9 checks passed
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.

Random description for array items is sent in inputSchema after update to v0.3.0

3 participants