LearnNewsExamplesServices
Frontmatter
id7841
titleFix list_issues tool schema validation error
stateClosed
labels
bugai
assigneestobiu
createdAtNov 21, 2025, 2:02 PM
updatedAtNov 21, 2025, 2:35 PM
githubUrlhttps://github.com/neomjs/neo/issues/7841
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 21, 2025, 2:35 PM

Fix list_issues tool schema validation error

Closed v11.8.0 bugai
tobiu
tobiu commented on Nov 21, 2025, 2:02 PM

The list_issues tool fails with a schema validation error because the IssueService.listIssues method returns raw GraphQL response structures for labels and assignees (nested under nodes), whereas the OpenAPI schema expects flat arrays.

Error: data/issues/0/labels must be array data/issues/0/assignees must be array

Fix: Transform the GraphQL response in IssueService.listIssues to map labels.nodes to labels and assignees.nodes to assignees before returning the data.

tobiu added the bug label on Nov 21, 2025, 2:02 PM
tobiu added the ai label on Nov 21, 2025, 2:02 PM
tobiu assigned to @tobiu on Nov 21, 2025, 2:03 PM
tobiu
tobiu Nov 21, 2025, 2:34 PM

Input from Gemini:

✦ Fixed the list_issues schema validation error by:

  1. Creating a new, optimized GraphQL query FETCH_ISSUES_LIST in issueQueries.mjs that fetches only the required fields.
  2. Updating IssueService.mjs to use this new query.
  3. Implementing in-place transformation in IssueService.listIssues to flatten labels and assignees from GraphQL nodes to simple arrays, strictly matching the OpenAPI schema.

The tool now returns correctly formatted data.

tobiu referenced in commit ade50ef - "Fix list_issues tool schema validation error #7841" on Nov 21, 2025, 2:35 PM
tobiu closed this issue on Nov 21, 2025, 2:35 PM