You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(issue_write): make issue_fields schema OpenAI strict-mode safe
Set additionalProperties: false on the issue_fields items object and
give the 'value' property an explicit type union, matching the fix
applied to push_files (see #2011). Without these, OpenAI Responses
API strict-mode callers reject the tool schema with HTTP 400.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/issue_write.snap
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@
32
32
"issue_fields": {
33
33
"description": "Issue field values to set. Each item requires field_name and either value or field_option_name. field_option_name is for single-select fields and is resolved to the corresponding option ID automatically.",
34
34
"items": {
35
+
"additionalProperties": false,
35
36
"properties": {
36
37
"field_name": {
37
38
"description": "Issue field name",
@@ -42,7 +43,12 @@
42
43
"type": "string"
43
44
},
44
45
"value": {
45
-
"description": "Value for text/number/date/single-select fields. For single-select, you can use field_option_name instead."
46
+
"description": "Value for text/number/date/single-select fields. For single-select, you can use field_option_name instead.",
Copy file name to clipboardExpand all lines: pkg/github/issues.go
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1547,13 +1547,15 @@ Options are:
1547
1547
Type: "array",
1548
1548
Description: "Issue field values to set. Each item requires field_name and either value or field_option_name. field_option_name is for single-select fields and is resolved to the corresponding option ID automatically.",
0 commit comments