-
Notifications
You must be signed in to change notification settings - Fork 147
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
Generate Client Using Swagger #224
Comments
I was interested in this as well. While I haven't spent much time on it I have encountered some errors while generating To generate the code I am running docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate -i https://bitbucket.org/api/swagger.json --package-name bitbucket -g go -o /local/bitbucket-sdk-go Every time this command is run it seems to regenerate a lot of the code and swap types round. Sometimes it was added new files. If you are interested, this is how to replicate:
|
I just stumbled across this and currently I'm getting errors when trying to generate the client from the swagger definitions.
Has anyone got this working? Note: I'm using the real swagger as it's the most stable generator I know. |
@toneill818 I considered it several times in the past, but I gave up because it was easy to fail to generate from swagger and it was fragile. what about now? I might consider it, but I think it's better for everyone not to adopt it if there is a problem with stability. I would like to consider it again when I have time. @Jamess-Lucass @migueleliasweb Thanks for the information. |
I spent last 2 days trying different approaches to generate client from their swagger.json (OAS2) or swagger.v3.json (OAS3) with no luck. Even when I manually fixed issues mentioned by @migueleliasweb there are problems on runtime because Atlassian is not updating OAS files immediately when they change API. |
That's the saddest part of using Atlassian products in many ways. Very little support and adoption compared to other offerings on the market. 😔 |
Since BitBucket provides a swagger document, we could generate the client using swaggers code gen. This would be a rewrite of the whole code base. Would this be something you are interested in?
The text was updated successfully, but these errors were encountered: