-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swagger.io doesn't like latest or legacy json #494
Comments
Thanks for the heads up. Looks like there are some internal server errors populating the JSON delivered by https://esi.tech.ccp.is/legacy/swagger.json that are probably throwing the generator off. |
I was actually wrong, looks like this has to do with the Swagger generator itself, as some of the clients still generate correctly with the ESI spec (such as elixir). I'm still looking into what is the problem though. |
If you run the swagger-codegen locally it works fine: (example from here)
This smells like something wrong with their(Swagger's) editor interface. |
It looks like https://generator.swagger.io is using Swagger codegen v2.2.3 which has a bug in it. @rlc4, until they update their generator to use v2.3.0 then I would recommend using the docker command suggested by @aquarhead. Until then I am watching a few related issues on swagger-codegen, namely swagger-api/swagger-codegen#6098 and swagger-api/swagger-codegen#6119 and will update this issue once it looks like their online tools are working again. |
Thanks for the assistance, this does provide a method to get a swagger client set up to develop with. As a suggestion, perhaps the documentation I referenced ( https://developers.eveonline.com/blog/article/swagger-codegen ) should be updated to include the Docker method as well as the existing swagger.io and curl methods. |
Bug
API file for 'Character' cannot be generated
Cannot follow the steps provided here: https://developers.eveonline.com/blog/article/swagger-codegen
Existing API definition results in a message from swagger.io:
https://developers.eveonline.com/blog/article/swagger-codegen
Via the web page or via curl, the results are the same. The newer swagger.io editor doesn't display an error message when a client is being generated, however the "previous editor version" does, and it matches the one shown in curl:
Request
curl -X POST -H "Content-Type: application/json" -d '{"swaggerUrl":"https://esi.tech.ccp.is/legacy/swagger.json?datasource=tranquility"}' "http://generator.swagger.io/api/gen/clients/python"
Response
{"code":1,"type":"error","message":"Unable to build target: Could not generate api file for 'Character'"}
Expected
A link for a downloadable zip file that would contain a client API.
The text was updated successfully, but these errors were encountered: