typescript-json-schema
Advanced tools
Comparing version 0.44.1 to 0.45.0
@@ -794,2 +794,10 @@ "use strict"; | ||
var returnedDefinition = definition; | ||
if (prop) { | ||
var defs = {}; | ||
var others = {}; | ||
this.parseCommentsIntoDefinition(prop, defs, others); | ||
if (defs.hasOwnProperty("ignore")) { | ||
return defs; | ||
} | ||
} | ||
var symbol = typ.getSymbol(); | ||
@@ -796,0 +804,0 @@ var isRawType = !symbol || |
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.44.1", | ||
"version": "0.45.0", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -63,3 +63,3 @@ "main": "dist/typescript-json-schema.js", | ||
"mocha": "^8.2.1", | ||
"prettier": "^2.2.0", | ||
"prettier": "^2.2.1", | ||
"source-map-support": "^0.5.19", | ||
@@ -66,0 +66,0 @@ "ts-node": "^9.0.0", |
@@ -1092,2 +1092,12 @@ import * as glob from "glob"; | ||
// Parse property comments now to skip recursive if ignore. | ||
if (prop) { | ||
const defs = {}; | ||
const others = {}; | ||
this.parseCommentsIntoDefinition(prop, defs, others); | ||
if (defs.hasOwnProperty("ignore")) { | ||
return defs; | ||
} | ||
} | ||
const symbol = typ.getSymbol(); | ||
@@ -1180,3 +1190,2 @@ // FIXME: We can't just compare the name of the symbol - it ignores the namespace | ||
} | ||
// Create the actual definition only if is an inline definition, or | ||
@@ -1183,0 +1192,0 @@ // if it will be a $ref and it is not yet created |
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
210224
3040