mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Removed usage of schema resolution cache to avoid incorrect resolution
This commit is contained in:
@@ -2062,6 +2062,10 @@ module.exports = {
|
||||
options = _.merge({}, defaultOptions, options);
|
||||
var refObj, savedSchema;
|
||||
|
||||
if (typeof $ref !== 'string') {
|
||||
return { value: `Invalid $ref: ${$ref} was found` };
|
||||
}
|
||||
|
||||
savedSchema = $ref.split('/').slice(1).map((elem) => {
|
||||
// https://swagger.io/docs/specification/using-ref#escape
|
||||
// since / is the default delimiter, slashes are escaped with ~1
|
||||
|
||||
Reference in New Issue
Block a user