Skip to content

fix: use anyOf instead of nullable type array #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025
Merged

Conversation

toby
Copy link
Member

@toby toby commented Apr 21, 2025

Windsurf is erroring on the create_pull_request tool because we're using an array of types to make fields nullable. This PR uses anyOf instead and should fix the issue.

Closes: #318

Windsurf is erroring on the `create_pull_request` tool because we're
using an array of types to make fields nullable. This PR uses `anyOf`
instead and should fix the issue.
@Copilot Copilot AI review requested due to automatic review settings April 21, 2025 19:15
@toby toby requested a review from a team as a code owner April 21, 2025 19:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an error with the pull request creation tool by updating the JSON schema definitions for nullable types to use the "anyOf" pattern instead of an array of types.

  • Changes include modifying the fields "position", "line", "side", "start_line", and "start_side" to use the new "anyOf" syntax.
  • The update aims to resolve errors with Windsurf related to handling nullable types.

@SamMorrowDrums SamMorrowDrums merged commit 9fa582d into main Apr 21, 2025
16 checks passed
@SamMorrowDrums SamMorrowDrums deleted the fix-pr-review branch April 21, 2025 19:19
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.

Can't install into latest Windsurf
2 participants