Commit 0be0143
fix: normalize REST response/body types and workflow boolean outcomes to lowercase
BSON parser (sdk/mpr/parser_rest.go) always returns uppercase ResponseType
and BodyType ("JSON", "NONE", "MAPPING" etc.). The describe switches in
cmd_rest_clients.go were using exact lowercase case matches, so every
response fell through to the "none" default.
Fixed by adding strings.ToLower() normalization on both the BodyType and
ResponseType switches so they accept values from both the BSON parser
(uppercase) and the MDL visitor (lowercase).
Also fixed BooleanConditionOutcome.GetName() in sdk/workflows/workflow.go
which returned "TRUE"/"FALSE" but workflow describe output and tests
expect lowercase "true"/"false".
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 46e8e67 commit 0be0143
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments