From 1961a193483cd94f46999ad835052b4c8cb56115 Mon Sep 17 00:00:00 2001 From: 04cb <0x04cb@gmail.com> Date: Sat, 7 Mar 2026 12:42:42 +0800 Subject: [PATCH] Fix push_files schema missing AdditionalProperties for Visual Studio 2026 Visual Studio 2026 requires array item schemas to explicitly set additionalProperties to false. The push_files tool's files array was missing this, causing HTTP 400 errors when the tool was invoked. This adds AdditionalProperties: false to the files array items schema to indicate only path and content properties are allowed. --- pkg/github/repositories.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/github/repositories.go b/pkg/github/repositories.go index 9376ddad4..91df7fc73 100644 --- a/pkg/github/repositories.go +++ b/pkg/github/repositories.go @@ -1233,7 +1233,8 @@ func PushFiles(t translations.TranslationHelperFunc) inventory.ServerTool { Type: "array", Description: "Array of file objects to push, each object with path (string) and content (string)", Items: &jsonschema.Schema{ - Type: "object", + Type: "object", + AdditionalProperties: jsonschema.BoolPtr(false), Properties: map[string]*jsonschema.Schema{ "path": { Type: "string",