LearnNewsExamplesServices
Frontmatter
id8443
titleFix OpenAPI Validator to support `additionalProperties`
stateClosed
labels
bugai
assigneestobiu
createdAtJan 8, 2026, 9:56 PM
updatedAtJan 8, 2026, 10:01 PM
githubUrlhttps://github.com/neomjs/neo/issues/8443
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 8, 2026, 10:01 PM

Fix OpenAPI Validator to support additionalProperties

Closed v11.19.0 bugai
tobiu
tobiu commented on Jan 8, 2026, 9:56 PM

The get_class_hierarchy tool fails because OpenApiValidator.mjs ignores the additionalProperties field in OpenAPI schemas. This results in a z.object({}) schema that rejects the tool's Map-like output. Web search confirms MCP supports JSON Schema additionalProperties. I will update ai/mcp/validation/OpenApiValidator.mjs to map additionalProperties to z.catchall() or z.record().

tobiu added the bug label on Jan 8, 2026, 9:56 PM
tobiu added the ai label on Jan 8, 2026, 9:56 PM
tobiu referenced in commit 39770fd - "fix: Support additionalProperties in OpenAPI validator (#8443)" on Jan 8, 2026, 10:00 PM
tobiu
tobiu Jan 8, 2026, 10:00 PM

Input from Gemini 3 Pro:

✦ I have verified the fix using the MCP CLI client. The get_class_hierarchy tool now correctly returns the class hierarchy map, as the validator properly handles additionalProperties.

Verification Output:

✅ Tool call successful:
{
  "Neo.draggable.DragZone": "Neo.core.Base",
  "Neo.calendar.view.week.EventDragZone": "Neo.draggable.DragZone",
  ...
}

The changes have been committed and pushed to dev.

tobiu
tobiu Jan 8, 2026, 10:00 PM
Image
tobiu assigned to @tobiu on Jan 8, 2026, 10:00 PM
tobiu closed this issue on Jan 8, 2026, 10:01 PM