swagger-editor icon indicating copy to clipboard operation
swagger-editor copied to clipboard

Swagger Editor page becomes unresponsive when the file is larger

Open SanduDS opened this issue 3 years ago • 1 comments

Q&A (please complete the following information)

  • OS: Ubuntu
  • Browser: chrome
  • Version: latest
  • Method of installation: npm
  • Swagger-Editor version: 3.16.3
  • Swagger/OpenAPI version: Swagger 2.0

Content & configuration

Example Swagger/OpenAPI definition:

https://assets.zuora.com/zuora-documentation/swagger3_collect.yaml

Describe the bug you're encountering

When converting from swagger 2.0 to openAPI 3.0.0, the web page becomes unresponsive and finally, it is crashed.

To reproduce...

Steps to reproduce the behavior:

  1. Go to https://assets.zuora.com/zuora-documentation/swagger3_collect.yaml
  2. Download the file
  3. Try to convert from 2.0 to openapi 3.0.0

Expected behavior

conversion from swagger 2.0 to openapi 3.0.0

SanduDS avatar Oct 27 '21 11:10 SanduDS

@SanduDS,

I'm not sure I understand.

The file https://assets.zuora.com/zuora-documentation/swagger3_collect.yaml contains OAS 3.0 definition.

What do you mean by Try to convert from 2.0 to openapi 3.0.0?

char0n avatar Nov 02 '21 21:11 char0n

Closing as this is already fixed

SanduDS avatar Dec 20 '22 18:12 SanduDS

No it isn't try opening the Redfish openapi definition and watch the editor choke on itself

really makes the whole thing useless

murisfurder avatar Feb 20 '24 11:02 murisfurder

@murisfurder I've just tried https://opendev.org/airship/go-redfish/raw/branch/master/spec/openapi.yaml on https://editor.swagger.io/ and https://editor-next.swagger.io/ and was unable to reproduce. Can you please specify more details? Thanks

char0n avatar Feb 20 '24 13:02 char0n

The schema you used is an outdated broken version without annotations

Please use the correct normative version included in DSP8010 2023.3

murisfurder avatar Feb 22 '24 08:02 murisfurder