From 90381d2e9de3ad97bdbe6a2cad92b3427e4b4682 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 18 Nov 2015 23:18:51 +0200 Subject: [PATCH] Add injecting orig ref while dereferencing --- lib/components/base.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/components/base.js b/lib/components/base.js index 844358ac..b112bc62 100644 --- a/lib/components/base.js +++ b/lib/components/base.js @@ -85,6 +85,7 @@ export class BaseComponent { let baseName = JsonPointer.baseName(schema.$ref); // if resolved schema doesn't have title use name from ref resolved.title = resolved.title || baseName; + resolved._pointer = schema.$ref; Object.assign(schema, resolved); delete schema.$ref; }