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
%dw 2.0
output application/json
type Money = String {format:"\$###0.00"}
---
{amt: 1200.00 as Money}
displays as:
If you add a comma to the format string:
%dw 2.0
output application/json
type Money = String {format:"\$#,##0.00"}
---
{amt: 1200.00 as Money}
displays as:
(the comma ends the string, and the closing quote starts a new one that includes the rest of the script)
The text was updated successfully, but these errors were encountered:
brianary
changed the title
Unable to use commas in type definition string property values
Using commas in type definition string property values breaks syntax highlighting
Apr 22, 2020
This DW script:
displays as:
If you add a comma to the format string:
displays as:
(the comma ends the string, and the closing quote starts a new one that includes the rest of the script)
The text was updated successfully, but these errors were encountered: