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; }