ts-json-schema-generator
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -22,2 +22,9 @@ "use strict"; | ||
const subdef = {}; | ||
if ("anyOf" in def) { | ||
for (const d of def.anyOf) { | ||
if (d.type === "null") { | ||
return def; | ||
} | ||
} | ||
} | ||
for (const k in def) { | ||
@@ -24,0 +31,0 @@ if (def.hasOwnProperty(k) && k !== "description" && k !== "title" && k !== "default") { |
@@ -1,5 +0,3 @@ | ||
/** | ||
* Test | ||
* @hide | ||
*/ | ||
export type A = "a"; | ||
export type Type = { | ||
foo: number; | ||
}; |
{ | ||
"name": "ts-json-schema-generator", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "Generate JSON schema from your Typescript sources", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,3 +0,6 @@ | ||
const FOO = "foo"; | ||
export type MyType = typeof FOO; | ||
export interface MyObject { | ||
/** | ||
* @nullable | ||
*/ | ||
optional?: MyObject | null; | ||
} |
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
241445
3444
103685