We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a8cf89 commit df9ce00Copy full SHA for df9ce00
src/util/json-schema.ts
@@ -24,7 +24,10 @@ function derefRef(root: any, node: Ref) {
24
let refTarget: any = root;
25
26
while (refParts.length) {
27
- const nextPart = refParts.shift() as any;
+ const nextPart = refParts.shift()!
28
+ // Handle JSON pointer escape chars:
29
+ .replace(/~1/g, '/')
30
+ .replace(/~0/g, '~');
31
refTarget = refTarget[nextPart];
32
if (!refTarget) {
33
throw new Error(`Could not follow ref ${ref}, failed at ${nextPart}`);
0 commit comments