Skip to content

Commit 5eb969e

Browse files
committed
fix: add required fields for OpenAI API
1 parent dd8eddf commit 5eb969e

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy