[Question] Is it possible to disable example data generation?
See original GitHub issueFirst thanks a lot for springdoc-openapi-ui
, it works great out of the box!
Because of some recursion in my data model, the example data Swagger generates is massive [1] and doesn’t render at all in the browser (the tab that loaded the doc page hangs).
Is it possible to disable this generation when springdoc-openapi-ui
produces the documentation?
[1] I have discovered this by trying an alternate path:
- Run
generateOpenApiDocs
fromorg.springdoc.openapi-gradle-plugin
- A valid 240KB
openapi.json
is generated 👍 - Run
swagger-codegen generate -l html -I openapi.json
- A single page HTML doc is generated: it’s > 3MB and is mostly composed of a completely useless example data section.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Disabling tracking data generation for a Process Server ... - IBM
The accepted answer above will stop tracking data generation from all BPDs, regardless of what settings the individual BPDs contain. This action is...
Read more >Disable or turn off the auto generation of mappings based on ...
I am using the Code First constructs to connect to an existing database (which, I know is not code first technically). I do...
Read more >Enable and Disable change data capture - SQL Server
Disabling the database removes all associated change data capture metadata, including the cdc user and schema and the change data capture jobs.
Read more >Disable and suppress inspections | IntelliJ IDEA Documentation
Some inspections may report problems that you currently do not want to see. In this case, you can disable or suppress them.
Read more >Offering account deletion in your app - Support
Apps submitted to the App Store that support account creation must also ... only offering to temporarily deactivate or disable an account is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @dandew,
There is no such property, but you can ask for an enhancement on the swagger-ui project:
Are you using groups (or GroupedOpenApi Bean) ?
I would guess, it might be more related to the performance of the rendering on the client side.
There are some existing requests to improve the performance of the UI, as for example:
I am quite sure, if you provide them the relevant information they need, they could help.