-
Notifications
You must be signed in to change notification settings - Fork 226
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
Huge swagger.json file is not being processed #884
Comments
Hi @joaorodr84 have you tried parsing it using other tools, like redoc? If it's in fact too large only strategy that comes to mind would be splitting it up into "micro" specs and/or refactoring it to leverage reusable components as much as possible, which may help reduce the overall size. |
I am having a similar issue. I merely have 10K lines in my swagger.json file, but I get:
Docusaurus 3.4.0 and docusaurus-plugin-openapi-docs 3.0.1. |
Hi @hbulens, I given where the error is occurring, it's possible that circular references could be the root cause. Does your spec parse properly with other OpenAPI tools? |
That must be it. Our OpenAPI spec does work using Swashbuckle but not with other parsers. |
I have a swagger.json file with almost 150 000 lines for my API.
I want to generate the documentation (mdx files) with this plugin, but it doesn't run.
yarn docusaurus gen-api-docs myapi
Simply doesn't generate anything and kinda hangs.
Is it because the file is too big?
How do you get around such a problem?
Thanks
The text was updated successfully, but these errors were encountered: