-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Can not parse openapi spec with recursive references #309
Comments
@fenollp I don't think that this one is fixed. A minimal example to reproduce: openapi: 3.0.1
info:
title: Recursive refs example
version: "1.0"
paths: {}
components:
schemas:
Complex:
type: object
properties:
parent:
$ref: '#/components/schemas/Complex' Should I open a different issue? |
@fenollp @hottestseason thanks for all the hard work and a the great project. I'm still seeing this as well so I don't think it's fixed yet. The issue I'm hitting is the same as @roee88 's example where my schema is recursive. The result is, golang model generation hangs indefinitely. |
Ah sorry I missed that @roee88 kin-openapi/openapi3/loader.go Line 50 in e9b36da
PRs welcomed! |
It looks this library fail to parse spec which has recursive references like this
https://github.com/hottestseason/kin-openapi/tree/f9ccdc2e69d360c4f17a7c94189526457e90b1f3/openapi3/testdata/recursiveRef
It works when loading bundled version such as using
swagger-cli bundle
The text was updated successfully, but these errors were encountered: