Closed jacobdekeizer closed 3 months ago
Looks like a problem in underlying kin-openapi This can be used to replicate with your files above:
func TestLoadCircular(t *testing.T) {
loader := NewLoader()
loader.IsExternalRefsAllowed = true
_, err := loader.LoadFromFile("testdata/circular2.yaml")
require.NoError(t, err)
}
Thanks for reporting!
I faced the same issue recently.
Describe the bug We have an open api specification with circular references where each object is stored in a separate file. This results in a stack overflow error:
I am on the latest version and the pr #418 did not fix the issue for our scenario.
To Reproduce
I've made two example files based on the example files in pr #418:
circular2.yaml
AwsEnvironmentSettings.yaml
Steps to reproduce the behavior:
oasdiff breaking ./circular2.yaml ./circular2.yaml