Open BrunnerLivio opened 3 years ago
I looked into this a bit. Sadly it appears the current strategy internally is to replace every $ref
with a full copy of the referenced schema when building the documentation for its containing type. Thus, a circular reference creates infinite recursion, and cannot be fully expanded using the current architecture.
I'm sure it's not impossible to fix, but it's a structural change, not a quick tweak. Contributions welcome!
Hi. I don't use circular references, but regular ones and receive this error:
throw new Error(`No title found in $ref ${ref}`);
Does simple refs are supported?
@volodink That's off-topic here, but generally this documentation tool requires the title
attribute in certain places where it would normally be considered optional by other tools. That's because this tool is attempting to build cross-links and TOC anchors and such things. Try adding a title
to the referenced schema.
Got it, thanks!
I use a circular model for my JSON schema. So as an example JSON, something like this:
Here is JSON schema
This results in the following error: