@asyncapi/parser
Advanced tools
Comparing version 0.30.0 to 0.30.1
@@ -362,2 +362,4 @@ const { createMapOfType, getMapValueOfType, addExtensions } = require('../utils'); | ||
} | ||
seenObj.pop(); | ||
} | ||
@@ -364,0 +366,0 @@ |
{ | ||
"name": "@asyncapi/parser", | ||
"version": "0.30.0", | ||
"version": "0.30.1", | ||
"description": "JavaScript AsyncAPI parser.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -500,2 +500,6 @@ const { EOL } = require('os'); | ||
expect(result.components().schema('NonRecursive').properties()['child'].isCircular()).to.equal(false); | ||
//NormalSchemaB is referred twice, from NormalSchemaA and NormalSchemaC. | ||
//If seenObjects array is not handled properly, once NormalSchemaB is seen for a second time while traversing NormalSchemaC, then NormalSchemaC is marked as object holding circular refs | ||
//This is why it is important to check that NormalSchemaC is or sure not marked as circular | ||
expect(result.components().schema('NormalSchemaC').isCircular()).to.equal(false); | ||
}); | ||
@@ -502,0 +506,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1117263
9574