Skip to content

Commit b559309

Browse files
committed
handling unwanted types
1 parent 5929ebd commit b559309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xmlSchemaFaker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function convertSchemaToXML(name, schema, attribute, indentChar, indent) {
4747
attributes.push(`${key}="${propVal}"`);
4848
}
4949
else {
50-
childNodes += propVal === undefined ? '' : propVal;
50+
childNodes += _.isString(propVal) ? propVal : '';
5151
}
5252
});
5353
if (attributes.length > 0) {

0 commit comments

Comments
 (0)