-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[BUG] [haskell-http-client]: Cannot create HTTP client for Docker #2527
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
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
Thanks for reporting the issue. cc @jonschoning |
@wing328 For an unknown reason, openapi-generator not generates ContainerSummary model. I think, it caused this error. |
Lines 443 to 449 in dc78405
This occurs because DefaultGenerator.java thinks that ContainerSummary has no properties, and so it refuses to generate the model. I do not think it's an issue with the |
@jonschoning is there a way we can work around this? I tried manually correcting the import and the big It seems like we're tantalizingly close to building the Docker client in Haskell, which hasn't been possible for a long time. There are only a couple more glitches after this where the generator emitted |
@thomasjm if other languages/generators also cannot generate the docker spec, it's a problem with the core parsing logic. I only really maintain the Haskell client bits, and don't have a lot of free time to fix other issues. |
Thanks! If you happen to know who would be better to ask then I can bug them too :) |
I've put some more work into this and made some progress. Let me record some notes here in case it helps anyone:
You can find a successfully buildable version of |
I can confirm that this is not |
Bug Report Checklist
Description
openapi-generator successfully generates HTTP client for Docker, but I can't compile it using
stack haddock
. It ends with this error:openapi-generator version
OpenAPI declaration file content or url
https://docs.docker.com/engine/api/v1.39/swagger.yaml
Command line used for generation
Steps to reproduce
Related issues/PRs
Not found any.
Suggest a fix
The text was updated successfully, but these errors were encountered: