Commit 9e39cad
committed
fix: describe REST HttpResponse result handling
Symptom: describe emitted `returns String` for REST call actions backed by ResultHandlingHttpResponse. Re-executing that MDL rebuilt the output variable as a string, so later `$Response/StatusCode` and `$Response/Content` expressions failed Mendix consistency checks.
Root cause: the REST call formatter handled string, mapping, and none result handlers, but fell through to String for HttpResponse result handling.
Fix: format ResultHandlingHttpResponse as `returns response`, matching the existing parser/builder syntax for full HTTP response variables.
Tests: added a REST formatter regression that asserts HttpResponse result handling roundtrips as `returns response`.1 parent 9db9930 commit 9e39cad
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| 925 | + | |
| 926 | + | |
925 | 927 | | |
926 | 928 | | |
927 | 929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
34 | 48 | | |
35 | 49 | | |
36 | 50 | | |
| |||
0 commit comments