typescript-json-schema
Advanced tools
Comparing version 0.46.0 to 0.47.0
@@ -334,5 +334,3 @@ "use strict"; | ||
else { | ||
definition.additionalItems = { | ||
anyOf: fixedTypes, | ||
}; | ||
definition.maxItems = targetTupleType.fixedLength; | ||
} | ||
@@ -339,0 +337,0 @@ } |
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.46.0", | ||
"version": "0.47.0", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -5,0 +5,0 @@ "main": "dist/typescript-json-schema.js", |
@@ -99,3 +99,3 @@ import * as glob from "glob"; | ||
// Fields that must be redifined because they make use of this definition itself | ||
// Fields that must be redefined because they make use of this definition itself | ||
items?: DefinitionOrBoolean | DefinitionOrBoolean[]; | ||
@@ -551,5 +551,3 @@ additionalItems?: DefinitionOrBoolean; | ||
} else { | ||
definition.additionalItems = { | ||
anyOf: fixedTypes, | ||
}; | ||
definition.maxItems = targetTupleType.fixedLength; | ||
} | ||
@@ -727,3 +725,3 @@ } else { | ||
const text = (<any>exp).text; | ||
// if it is an expression with a text literal, chances are it is the enum convension: | ||
// if it is an expression with a text literal, chances are it is the enum convention: | ||
// CASELABEL = 'literal' as any | ||
@@ -1435,3 +1433,3 @@ if (text) { | ||
} | ||
// Use defaults unles otherwise specified | ||
// Use defaults unless otherwise specified | ||
const settings = getDefaultArgs(); | ||
@@ -1438,0 +1436,0 @@ |
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
211022
3055