-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Please support openapi-generator for code generation #36
Comments
Do you know if they have a public API server? |
Please refer to https://github.com/OpenAPITools/openapi-generator#openapi-generator-online-docker-image on how to use the OpenAPI Generator Online Docker Image |
Thanks @wing328 - I think that should be linked to from the page I originally referenced? Is it possible for someone from OpenAPITools to run the API server on a service such as Heroku (I would but I already have a dyno set up which runs nearly 24/7)? |
I took your feedback and update the page with a link to the Docker doc: OpenAPITools/openapi-generator#1415
We plan to provide an online generator so that people do not need to set up their own. We've contacted several VPS providers but there's no ETA on when we'll be able to offer that. |
Thanks @wing328 |
Should be working now, could you please test? |
It works! Thank you to both the mermade and OpenApiTools. |
Thanks for the suggestion and @wing328's help. |
@MikeRalphson glad to see the integration. Do you mind mentioning "OpenAPI Generator" in the Wizard tab? e.g. Create server SDK - 39 languages using OpenAPI-Generator |
Yep, that would be good. Will do. |
Links added, thanks. |
@wing328 one thing I noticed is that the download links are coming back as follows: {"code":"56f9553a-0d0a-4c44-b505-b3b5cd34fdb5","link":"http://localhost:8080/api/gen/download/56f9553a-0d0a-4c44-b505-b3b5cd34fdb5"} |
@MikeRalphson I just performed some tests and couldn't repeat the issue:
Can you share more with me? which generator did you target? |
I also did a test earlier wtih openapi-gui to generate Android client and was able to download the file. |
OpenAPI-gui patched out the localhost reference. I'll retest. But this was against stable not latest master. |
I see. Let me know if I can be of any help to troubleshoot the issue. |
curl -X POST -d '{"spec":{"swagger":"2.0","info":{"title":"","version":""},"paths":{}}}' -H 'content-type: application/json' http://api.openapi-generator.tech/api/gen/servers/haskell {"code":"e64a59b2-b4cd-4076-a6b4-b11bb3836b18","link":"http://localhost:8080/api/gen/download/e64a59b2-b4cd-4076-a6b4-b11bb3836b18"} |
I could repeat the issue with another server generator:
Looks like it's impacting server but not client generators. We'll look into it. |
Great, thanks. |
@MikeRalphson we've fixed the issue via OpenAPITools/openapi-generator#1580 and deployed the fix to the server. Please give it another try when you've time. Have a nice weekend. |
Thanks, will do! |
There is now the openapi-generator, which appears to have take over swagger-codegen for openapi 3.0, could mermade support it for server and client SDK generation?
The text was updated successfully, but these errors were encountered: