Commit 8c789d6
fix(go): remove hand-written PermissionRequest that conflicts with generated type
The @github/copilot 0.0.421 schema update (PR #684) caused quicktype to
generate a PermissionRequest struct in generated_session_events.go that
conflicts with the hand-written one in types.go. The generated type has
all 23+ typed fields while the hand-written one was a simplified wrapper
with an Extra map catch-all.
Remove the hand-written type and its custom UnmarshalJSON in favor of the
generated one. Update the E2E test that accessed Extra["toolName"] to
use the typed ToolName field instead.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5b4a6ec commit 8c789d6
2 files changed
Lines changed: 2 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
| 353 | + | |
| 354 | + | |
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 102 | | |
136 | 103 | | |
137 | 104 | | |
| |||
0 commit comments