swagger-api / swagger-api/swagger-ui

UI crashes on complex OpenAPI documents

Open
#9,513 11 comments 0 reactions 1 assignee View on GitHub

@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:
swagger-ui-1
swagger-ui-0
swagger-ui-2

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:

  1. Go to https://editor-next.swagger.io/
  2. Paste content from this link: https://api.sap.com/odata/1.0/catalog.svc/APIContent.APIs('SAP_ICSM_StudyService')/$value?type=json
  3. Try to expand first operation "/BlindingGroups"
Expected behavior

UI doesn't crash.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.