Closed toyflish closed 1 year ago
I think this is because yaml parsing takes the single quotes out In order to have double or single quotes, did you try to escape them like this:
email: \'customer@test.net\'
EDIT: according to this doc this should work:
email: "'customer@test.net'"
or
email: "\"customer@test.net\""
or
email: ' ''customer@test.net'' '
Or use the >
character
https://stackoverflow.com/a/37432679
Thanks for your help, it was caused by my yaml config, wrapping in double quotes works fine.
My email default values configured as static strings get translated to mock file without quotes.
versions:
codegen.yaml
mock.ts
Line 4 has customer@test.net in the correct place but missing the quotation marks.