Closed Nicolaasjvv closed 9 months ago
Thanks @Nicolaasjvv, we are looking into this.
Thanks @Nicolaasjvv,
I'm able to reproduce this issue:
Discussing internally with the engineering team.
hey @Nicolaasjvv,
To address the JSON validity concern in POST bodies, here are two workarounds:
Bypass the boolean type and set directly as a string:
dialog.testResults = "true"
Leverage Adaptive Expressions' string()
function:
${string(dialog.testResults)}
Closing with workaround.
Describe the bug
When a property is manually set to a lowercase boolean, the composer will automatically capitalise the value (so "true" becomes "True"). This causes issues when the property is used in POST Bodies, as uppercase boolean values are not valid JSON.
Version
Version: 2.1.2 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0
Browser
None. Using Bot framework emulator to test.
OS
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Properties set as lowercase Booleans should remain lowercase when recalled/used later in the flow. Or, Booleans should by default be lowercase.
Screenshots
See reproducing steps above.
Additional context