-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
Loading openapi schema with loop references ends-up with endless loop and crashing with "stack overflow" error #542
Comments
Hi @panush please use backticks to share your YAML. See https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code Am I correct in assuming that components' Cat's |
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
I investigated a bit but ran out of time. FYI this can be used as a temporary work around: components:
schemas:
Kitten:
$ref: '#/components/schemas/Cat' # before
allOf: # after
$ref: '#/components/schemas/Cat' I'd appreciate help on this issue. I don't have much available time these days. |
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
@panush do the recent PR that was merged sort your issue here? |
It seems to be fixed, see https://go.dev/play/p/cC6HQ4xXC_M. Returns with:
@fenollp perhaps you can close the issue? |
I'm using kin-openapi v0.89.0.
when trying to load the below openapi (with a reference loop in it), kin-openapi is crashing after getting into an endless loop (see attached file)
kin-openapi-endless-loop-error.txt
The text was updated successfully, but these errors were encountered: