Skip to content
Snippets Groups Projects
Commit b19c8e96 authored by Tomasz Ducin's avatar Tomasz Ducin
Browse files

bugfix: typecast to string (removed JSON.stringify)

parent e9290b8f
Branches
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -42,7 +42,7 @@ function typecast(value: any, targetType: ISchemaInternalType): any { ...@@ -42,7 +42,7 @@ function typecast(value: any, targetType: ISchemaInternalType): any {
case 'number': case 'number':
return parseFloat(value); return parseFloat(value);
case 'string': case 'string':
return JSON.stringify(value); return '' + value;
case 'boolean': case 'boolean':
return !!value; return !!value;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment