json-schema-to-typescript
Advanced tools
Comparing version 13.1.1 to 13.1.2
@@ -335,3 +335,3 @@ "use strict"; | ||
var ast = parse(value, options, key, processed, usedNames); | ||
var comment = "This interface was referenced by `".concat(parentSchemaName, "`'s JSON-Schema definition\nvia the `patternProperty` \"").concat(key, "\"."); | ||
var comment = "This interface was referenced by `".concat(parentSchemaName, "`'s JSON-Schema definition\nvia the `patternProperty` \"").concat(key.replace('*/', '*\\/'), "\"."); | ||
ast.comment = ast.comment ? "".concat(ast.comment, "\n\n").concat(comment) : comment; | ||
@@ -338,0 +338,0 @@ return { |
{ | ||
"name": "json-schema-to-typescript", | ||
"version": "13.1.1", | ||
"version": "13.1.2", | ||
"description": "compile json schema to typescript typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -417,3 +417,3 @@ import {JSONSchema4Type, JSONSchema4TypeName} from 'json-schema' | ||
const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema definition | ||
via the \`patternProperty\` "${key}".` | ||
via the \`patternProperty\` "${key.replace('*/', '*\\/')}".` | ||
ast.comment = ast.comment ? `${ast.comment}\n\n${comment}` : comment | ||
@@ -420,0 +420,0 @@ return { |
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
2374321
55