@hoth/typescript-to-json-schema
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -9,3 +9,4 @@ "use strict"; | ||
if (jsdocs.length > 0) { | ||
return jsdocs[0].getComment(); | ||
const des = jsdocs[0].getComment(); | ||
return des && des.trim() ? des.trim() : undefined; | ||
} | ||
@@ -16,3 +17,3 @@ } | ||
const required = node.getProperties() | ||
.filter(n => !n.getQuestionTokenNode()) | ||
.filter(n => !n.getQuestionTokenNode() && !('ignore' in getJsDocTags(n))) | ||
.map(n => n.getName()); | ||
@@ -36,2 +37,3 @@ if (required.length > 0) { | ||
case ts_morph_1.ts.SyntaxKind.NullKeyword: | ||
case ts_morph_1.ts.SyntaxKind.ObjectKeyword: | ||
return { | ||
@@ -38,0 +40,0 @@ type: node.getText() |
{ | ||
"name": "@hoth/typescript-to-json-schema", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "typescript to json-schema transpiler", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
35397
412