Skip to content
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

Support recursive types #1081

Open
lfportal opened this issue Oct 22, 2020 · 2 comments
Open

Support recursive types #1081

lfportal opened this issue Oct 22, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@lfportal
Copy link
Contributor

I also noticed the following which capability matrix:
union type -> ✅
inheritance type -> ✅
recursive -> 🔴
generics -> 🔴

Would love to hear any thoughts you have on implementing these.

Originally posted by @mahirk in #1034 (comment)

@lfportal
Copy link
Contributor Author

lfportal commented Oct 22, 2020

The type parser would need to be modified to pass around some sort "type parse stack" structure to keep track of types currently being parsed as it traverses the types to short circuit reference type parsing. I'm not too familiar with recursive type representation with the OpenAPI spec. Are you aware of any particular limitations @mahirk?

#1034 (comment)

Swagger UI seems to have trouble, and potentially the model generation might have issues. Let me check those and then evaluate if it would be okay. As far as representation, that's possible using the specification swagger-api/swagger-ui#3325

#1034 (comment)

@DjakaTechnology
Copy link

Hello @lfportal, is there any workaround for recursive needs while we wait for recursive support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants