swagger-api / swagger-api/swagger-ui
UI crashes on complex OpenAPI documents
Open
@glowcloud is already working on this.
Since Feb 19, 2024.
cat: $ref resolution
type: bug
version: 5.x
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
Q&A (please complete the following information)
- OS: macOS, Windows
- Browser: Chrome
- Version: 120.0.6099.234
- Method of installation: web version - https://editor-next.swagger.io/
- Swagger-UI version: n/a
- Swagger/OpenAPI version: OpenAPI 3.0
Content & configuration
When rendering a complex OpenAPI document, UI comes unresponsive first with the following browser dialog, and eventually crashes later:
Example Swagger/OpenAPI definition:
https://api.sap.com/odata/1.0/catalog.svc/APIContent.APIs('SAP_ICSM_StudyService')/$value?type=json
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
- Go to https://editor-next.swagger.io/
- Paste content from this link: https://api.sap.com/odata/1.0/catalog.svc/APIContent.APIs('SAP_ICSM_StudyService')/$value?type=json
- Try to expand first operation "/BlindingGroups"
Expected behavior
UI doesn't crash.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.