mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 17:44:07 +03:00
Add injecting orig ref while dereferencing
This commit is contained in:
parent
7418372e60
commit
90381d2e9d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user