Skip to content

Commit 1961a19

Browse files
committed
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.
1 parent 486e9fe commit 1961a19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/github/repositories.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,8 @@ func PushFiles(t translations.TranslationHelperFunc) inventory.ServerTool {
12331233
Type: "array",
12341234
Description: "Array of file objects to push, each object with path (string) and content (string)",
12351235
Items: &jsonschema.Schema{
1236-
Type: "object",
1236+
Type: "object",
1237+
AdditionalProperties: jsonschema.BoolPtr(false),
12371238
Properties: map[string]*jsonschema.Schema{
12381239
"path": {
12391240
Type: "string",

0 commit comments

Comments
 (0)