Skip to content

Commit 4e70e48

Browse files
Fixed #3
1 parent 2dd5d46 commit 4e70e48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/bundle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function remap($refs, options) {
4747
// Now APPLY all of the re-mappings
4848
for (var i = 0; i < remapped.length; i++) {
4949
var mapping = remapped[i];
50-
mapping.old.$ref = mapping.new.$ref;
50+
mapping.old$Ref.$ref = mapping.new$Ref.$ref;
5151
}
5252
}
5353

@@ -76,8 +76,8 @@ function crawl(obj, path, $refs, remapped, options) {
7676
var new$RefPath = pointer.$ref.pathFromRoot + util.path.getHash(pointer.path).substr(1);
7777
util.debug(' new value: %s', new$RefPath);
7878
remapped.push({
79-
old: value,
80-
new: {$ref: new$RefPath}
79+
old$Ref: value,
80+
new$Ref: {$ref: new$RefPath} // Note: DON'T name this property `new` (https://github.com/BigstickCarpet/json-schema-ref-parser/issues/3)
8181
});
8282
}
8383
else {

0 commit comments

Comments
 (0)