Existing specs which used to validate fine with previous version, are now failing to load because of the new circular reference check [https://github.com//pull/607].
The hardcoded limit of 3 visits per definition is too aggressive for complex API specs.
I propose increasing the default check limit to a higher number like 100 or 1K. Since the check was introduced to guard against infinite loop, a higher limit would still do the job, but would allow for complex specs to still be validated correctly.
Ideally the limit should be configurable on the loader.
Existing specs which used to validate fine with previous version, are now failing to load because of the new circular reference check [https://github.com//pull/607].
The hardcoded limit of 3 visits per definition is too aggressive for complex API specs.
I propose increasing the default check limit to a higher number like 100 or 1K. Since the check was introduced to guard against infinite loop, a higher limit would still do the job, but would allow for complex specs to still be validated correctly.
Ideally the limit should be configurable on the loader.