Add injecting orig ref while dereferencing

This commit is contained in:
Roman Hotsiy 2015-11-18 23:18:51 +02:00
parent 7418372e60
commit 90381d2e9d

View File

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