Support recursive types
lfportal opened this issue ยท 2 comments
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)
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?
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
Hello @lfportal, is there any workaround for recursive needs while we wait for recursive support?