mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Add safe check avoid undef error
This commit is contained in:
@@ -188,7 +188,7 @@ module.exports = {
|
|||||||
let refResolvedSchema = this.resolveRefs(resolvedSchema, parameterSourceOption,
|
let refResolvedSchema = this.resolveRefs(resolvedSchema, parameterSourceOption,
|
||||||
components, schemaResolutionCache, resolveFor, stack, _.cloneDeep(seenRef));
|
components, schemaResolutionCache, resolveFor, stack, _.cloneDeep(seenRef));
|
||||||
|
|
||||||
if (refResolvedSchema.value !== ERR_TOO_MANY_LEVELS) {
|
if (refResolvedSchema && refResolvedSchema.value !== ERR_TOO_MANY_LEVELS) {
|
||||||
schemaResolutionCache[refKey] = refResolvedSchema;
|
schemaResolutionCache[refKey] = refResolvedSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user