Describe the bug
If I invoke the string() function with a string argument, the function wraps the string into another string. As a result, the string value is escaped.
This behavior is different compared to previous versions of the FEEL engine (i.e. a regression).
The wrapped string value is complicated to handle because I need to unwrap it before using it.
To Reproduce
Steps to reproduce the behavior:
Evaluate the expression
string("foo")
Verify that the result is a string wrapped inside a string
"\"foo\""
Expected behavior
If I invoke the string() function with a string value, it should return the string value as it is (i.e. no wrapping, no escaping).
Describe the bug If I invoke the string() function with a string argument, the function wraps the string into another string. As a result, the string value is escaped.
This behavior is different compared to previous versions of the FEEL engine (i.e. a regression).
The wrapped string value is complicated to handle because I need to unwrap it before using it.
To Reproduce Steps to reproduce the behavior:
Expected behavior If I invoke the
string()
function with a string value, it should return the string value as it is (i.e. no wrapping, no escaping).Related DMN-TCK test case 0079-feel-string-function.
Environment
1.17.0
8.3.0