-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An OAS with circular schema definitions fails to create API proxy #199
Comments
I don't think it can be fixed within I did detect a problem with how format validation is enabled/disabled. I have fixed that portion. |
I see there was a solution on the kin-openapi repo, the fix was to create a package-wide CircularReferenceCounter variable.
That fixed the issue with the OAS I shared. |
This fix is also needed in LoadDocumentFromURI and I think the value should be higher.
For the use case I had, this URL required the circular reference counter to be 11 or greater, value of 10 caused "circular schema reference" error.
|
Given the attached OAS the following command fails with or without --validate false
Other tools (e.g. openapi2apigee) and the UI to create the proxy and to add an Open API Spec Validation policy, process the OAS without errors.
Rename to circular-reference.json
circular-reference-json.txt
The text was updated successfully, but these errors were encountered: