Skip to content

Commit

Permalink
fix: use new forked package of json-pointer that fixed critical Proto…
Browse files Browse the repository at this point in the history
…type pollution (#133)
  • Loading branch information
francis04j authored Feb 21, 2022
1 parent 2f04678 commit 8c971a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@
},
"dependencies": {
"@types/json-schema": "^7.0.7",
"json-pointer": "^0.6.1"
"json-pointer-community": "0.7.0"
}
}
2 changes: 1 addition & 1 deletion src/traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { _samplers } from './openapi-sampler';
import { allOfSample } from './allOf';
import { inferType } from './infer';
import { getResultForCircular, mergeDeep, popSchemaStack } from './utils';
import JsonPointer from 'json-pointer';
import JsonPointer from 'json-pointer-community';

let $refCache = {};
// for circular JS references we use additional array and not object as we need to compare entire schemas and not strings
Expand Down

0 comments on commit 8c971a8

Please sign in to comment.