json-schema-resolver
Advanced tools
Comparing version 1.1.0-0 to 1.1.1-0
{ | ||
"name": "json-schema-resolver", | ||
"version": "1.1.0-0", | ||
"version": "1.1.1-0", | ||
"description": "Resolve all your $refs", | ||
@@ -5,0 +5,0 @@ "main": "ref-resolver.js", |
@@ -103,3 +103,3 @@ 'use strict' | ||
debug('Generating %d refs', allRefs.length) | ||
allRefs.forEach(({ baseUri, ref, json }) => { | ||
allRefs.forEach(({ baseUri, ref, refUri, json }) => { | ||
debug('Evaluating $ref %s', ref) | ||
@@ -114,3 +114,3 @@ if (ref[0] === '#') { return } | ||
evaluatedJson[kConsumed] = true | ||
json.$ref = `#/definitions/${evaluatedJson[kRefToDef]}` | ||
json.$ref = `#/definitions/${evaluatedJson[kRefToDef]}${refUri.fragment || ''}` | ||
}) | ||
@@ -171,2 +171,3 @@ | ||
baseUri: URI.serialize(baseUri), | ||
refUri, | ||
ref, | ||
@@ -173,0 +174,0 @@ json |
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
25708
17
654
4