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
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/issue_write.snap
+25-3Lines changed: 25 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,19 +30,41 @@
30
30
"type": "number"
31
31
},
32
32
"issue_fields": {
33
-
"description": "Issue field values to set. Each item requires 'field_name' and either 'value' or 'field_option_name'. Use 'field_option_name' for single-select fields to validate the option exists.",
33
+
"description": "Issue field values to set. Each item requires 'field_name' and exactly one of 'value' or 'field_option_name'.",
34
34
"items": {
35
+
"oneOf": [
36
+
{
37
+
"not": {
38
+
"required": [
39
+
"field_option_name"
40
+
]
41
+
},
42
+
"required": [
43
+
"value"
44
+
]
45
+
},
46
+
{
47
+
"not": {
48
+
"required": [
49
+
"value"
50
+
]
51
+
},
52
+
"required": [
53
+
"field_option_name"
54
+
]
55
+
}
56
+
],
35
57
"properties": {
36
58
"field_name": {
37
59
"description": "Issue field name",
38
60
"type": "string"
39
61
},
40
62
"field_option_name": {
41
-
"description": "Single-select option name (validates option exists before setting)",
63
+
"description": "Option name for single-select fields — validates the option exists in the field definition before setting it.",
42
64
"type": "string"
43
65
},
44
66
"value": {
45
-
"description": "Value for text/number/date/single-select fields"
67
+
"description": "Value to set. For single-select fields, prefer 'field_option_name' to validate the option exists first."
Description: "Issue field values to set. Each item requires 'field_name' and either 'value' or 'field_option_name'. Use 'field_option_name' for single-select fields to validate the option exists.",
1722
+
Description: "Issue field values to set. Each item requires 'field_name' and exactly one of 'value' or 'field_option_name'.",
1723
1723
Items: &jsonschema.Schema{
1724
1724
Type: "object",
1725
1725
Properties: map[string]*jsonschema.Schema{
@@ -1728,14 +1728,24 @@ Options are:
1728
1728
Description: "Issue field name",
1729
1729
},
1730
1730
"value": {
1731
-
Description: "Value for text/number/date/single-select fields",
1731
+
Description: "Value to set. For single-select fields, prefer 'field_option_name' to validate the option exists first.",
1732
1732
},
1733
1733
"field_option_name": {
1734
1734
Type: "string",
1735
-
Description: "Single-select option name (validates option exists before setting)",
1735
+
Description: "Option name for single-select fields — validates the option exists in the field definition before setting it.",
0 commit comments