typescript-json-schema
Advanced tools
Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -5,0 +5,0 @@ "main": "typescript-json-schema.js", |
@@ -108,3 +108,4 @@ "use strict"; | ||
}); | ||
assertSchema("annotation-default", "main.ts", "MyObject"); | ||
}); | ||
//# sourceMappingURL=schema.test.js.map |
@@ -47,10 +47,8 @@ "use strict"; | ||
JsonSchemaGenerator.prototype.parseValue = function (value) { | ||
if (value === "false") { | ||
return false; | ||
try { | ||
return JSON.parse(value); | ||
} | ||
if (value === "true") { | ||
return true; | ||
catch (error) { | ||
return value; | ||
} | ||
var num = parseFloat(value); | ||
return isNaN(num) ? value : num; | ||
}; | ||
@@ -57,0 +55,0 @@ JsonSchemaGenerator.prototype.parseCommentsIntoDefinition = function (symbol, definition, otherAnnotations) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124458
2737