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

Generate Server isn't working

Open ashutoshpanda31 opened this issue 5 years ago • 13 comments

Hey! So I was working with Swagger Editor, and I loaded in a YAML file, however, when I clicked "Generate Server," and clicked in "Spring"(as I am using spring boot), it didn't do anything! image

As you see in the image, it wasn't even even a link. My colleagues also tried it from their end, but they were experiencing the same issue. Please take a look, thank you!

ashutoshpanda31 avatar Jun 09 '21 05:06 ashutoshpanda31

Hi, the generator server -> spring works for me, via https://editor.swagger.io. The visual UI captured in the screenshot is valid, i.e. what I see/saw.

tim-lai avatar Jun 11 '21 18:06 tim-lai

You can download a .zip but its an empty/invalid one.

AbelRuol avatar Jun 15 '21 13:06 AbelRuol

+1

You can download a .zip but its an empty/invalid one.

clauslor avatar Jun 16 '21 09:06 clauslor

this also happens to (mostly) every client generated zip file. zip files have a size of 1KB

Cantasura avatar Jun 17 '21 05:06 Cantasura

This is still not working for generating client or server

jdforjan avatar Jun 17 '21 13:06 jdforjan

Same issue. This is a critical bug!

stephen-mi11er avatar Jun 17 '21 20:06 stephen-mi11er

Please solve it as soon as possible

44215341 avatar Jun 18 '21 01:06 44215341

You can download a .zip but its an empty/invalid one.

+1

andy380743909 avatar Jun 19 '21 14:06 andy380743909

Any updates?

Cantasura avatar Jun 21 '21 12:06 Cantasura

I just tried this again, with a definition with a validation error... still able to download a spring-server-generated.zip (12KB). Note that I was not behind any firewalls for this test. If you are still having trouble, please provide additional information, including reproduceable steps and the OpenAPI definition that you are using. Thanks.

tim-lai avatar Jun 21 '21 18:06 tim-lai

Ok, another update. I tried using an OpenAPI 2.0 definition, now I can reproduce the spring-server-generated.zip! Appears to be an OpenAPI 2.x generator issue.

tim-lai avatar Jun 21 '21 18:06 tim-lai

Another update... this appears to have been an infrastructure issue, and should now be resolved. I was able to download generated versions for both OpenApi 2.x and 3.0 definitions for both servers and clients. Going to close both #2674 and #2679.

tim-lai avatar Jun 21 '21 20:06 tim-lai

Tried it with my yaml. Wokrs again. Thank you very much for fixing :)

Cantasura avatar Jun 22 '21 05:06 Cantasura