fix: add required fields for OpenAI API · github/github-mcp-server@b46e4a8 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit b46e4a8

Browse files
committed
fix: add required fields for OpenAI API
1 parent 647a5e5 commit b46e4a8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pkg/github/pullrequests.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,9 @@ func createPullRequestReview(client *github.Client, t translations.TranslationHe
591591
mcp.WithArray("comments",
592592
mcp.Items(
593593
map[string]interface{}{
594-
"type": "object",
594+
"type": "object",
595+
"additionalProperties": false,
596+
"required": []string{"path", "position", "body"},
595597
"properties": map[string]interface{}{
596598
"path": map[string]interface{}{
597599
"type": "string",

pkg/github/repositories.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ func pushFiles(client *github.Client, t translations.TranslationHelperFunc) (too
488488
mcp.Required(),
489489
mcp.Items(
490490
map[string]interface{}{
491-
"type": "object",
491+
"type": "object",
492+
"additionalProperties": false,
493+
"required": []string{"path", "content"},
492494
"properties": map[string]interface{}{
493495
"path": map[string]interface{}{
494496
"type": "string",

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.