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: route path/query params correctly and suppress BodyVariable for JSON bodies in SEND REST REQUEST
Fixes CE7054 ("parameters updated") and CE7067 ("does not support body
entity") errors produced by mx check after mxcli generates a
Microflows$RestOperationCallAction.
Two root causes:
- All WITH-clause params were emitted as QueryParameterMappings regardless
of whether they are path or query params on the operation definition.
- BodyVariable was always serialised when BODY $var was present, but for
Rest$JsonBody / Rest$StringBody operations the body lives on the operation
template and BodyVariable must be nil.
Fix: look up the ConsumedRestService operation at build time via a new
restServices field on flowBuilder (populated from loadRestServices()), then
use lookupRestOperation / buildRestParameterMappings / shouldSetBodyVariable
helpers to emit the correct BSON. When the operation is not found we fall
back to the previous behaviour.
Closes#193
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/skills/fix-issue.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ to the symptom table below, so the next similar issue costs fewer reads.
25
25
| CE0463 "widget definition changed" | Object property structure doesn't match Type PropertyTypes |`sdk/widgets/templates/`| Re-extract template from Studio Pro; see `sdk/widgets/templates/README.md`|
26
26
| Parser returns `nil` for a known BSON type | Unhandled `default` in a `parseXxx()` switch |`sdk/mpr/parser_microflow.go` or `parser_page.go`| Find the switch by grepping for `default: return nil`; add the missing case |
27
27
| MDL check gives "unexpected token" on valid-looking syntax | Grammar missing rule or token |`mdl/grammar/MDLParser.g4` + `MDLLexer.g4`| Add rule/token, run `make grammar`|
28
+
| CE7054 "parameters updated" / CE7067 "does not support body entity" after `SEND REST REQUEST`|`addSendRestRequestAction` emitted wrong BSON: all params as query params, BodyVariable set for JSON bodies |`mdl/executor/cmd_microflows_builder_calls.go` → `addSendRestRequestAction`| Look up operation via `fb.restServices`; route path/query params with `buildRestParameterMappings`; suppress BodyVariable for JSON/TEMPLATE/FILE via `shouldSetBodyVariable`|
0 commit comments