jgexml
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "jgexml", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "The Just-Good-Enough XML Toolkit", | ||
@@ -5,0 +5,0 @@ "main": "jgeXml.js", |
@@ -422,2 +422,3 @@ 'use strict'; | ||
typeData["enum"] = []; | ||
enumSource = toArray(enumSource); // handle 'const' case | ||
for (var i = 0; i < enumSource.length; i++) { | ||
@@ -433,3 +434,2 @@ typeData["enum"].push(enumSource[i]["@value"]); | ||
if (!typeData.description) delete typeData.description; | ||
delete typeData.type; // assert it was a stringish type? | ||
} | ||
@@ -554,2 +554,3 @@ else { | ||
if (key == xsPrefix + "attribute") delete obj[key]; | ||
if (key == xsPrefix + "restriction") delete obj[key]; | ||
if (obj.properties && (Object.keys(obj.properties).length == 1) && obj.properties["#text"] && obj.properties["#text"]["$ref"]) { | ||
@@ -556,0 +557,0 @@ obj.properties["$ref"] = obj.properties["#text"]["$ref"]; |
73762
2213