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

+3-1
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

+3-1
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)