typescript-json-schema
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -5,0 +5,0 @@ "main": "typescript-json-schema.js", |
@@ -285,3 +285,3 @@ "use strict"; | ||
if (enumValues.length > 0) { | ||
definition["enum"] = enumValues; | ||
definition["enum"] = enumValues.sort(); | ||
} | ||
@@ -337,3 +337,3 @@ return definition; | ||
else { | ||
var enumSchema = { enum: enumValues }; | ||
var enumSchema = { enum: enumValues.sort() }; | ||
if (enumValues.every(function (x) { return typeof x === "string"; })) { | ||
@@ -340,0 +340,0 @@ enumSchema.type = "string"; |
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
103130