-
Notifications
You must be signed in to change notification settings - Fork 124
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
[BUG] Generated files fails because of major change in Chopper v8.0.0 #749
Comments
@Vovanella95 gentle reminder that this will block folks like us that want to use the latest version of Chopper while using this library. Thanks in advance. |
error: the argument type iterable dynamic' can't be assigned to the parameter type |
@fryette Can you take a look at this issue ? |
@Vovanella95 looks like you're currently active today according to your Github activity. Just another gentle reminder regarding this issue. Thanks. |
The line in question is the following: swagger-dart-code-generator/lib/src/code_generators/swagger_requests_generator.dart Line 121 in 9533c64
Iterable<dynamic>? Needs to be changed to List<Interceptor>? I have a local build with this change that fixes it. lmk if I can provide any more help. |
@diegotori you can change your autogenerated code for now to use That should get you unblocked. |
@fryette @Vovanella95 Can either of you take a look at the PR? |
Are @fryette and @Vovanella95 still alive ? |
Based on @Vovanella95's activity, looks like he is, since he's been opening PRs in another project. Perhaps he's getting slammed with other pressing matters. @Vovanella95 ball is in your court. |
@af-chacon Do you have a "setup" on how we can use your fork with your fix PR of this repository (I am not to familiar with how .yaml works) in our projects, until @fryette or @Vovanella95 wakes up ? |
Found a solution for this one: Replace current dependency:
I hope @fryette and @Vovanella95 is still alive, but I fear this dependency to die soon if no one maintains it anymore, it has lowered its score to 120 now... ...I may look for a replacement if we don't hear from them in 2-3 months. |
We need a fix asap (update to the latest chopper version). It's a real struggle to update tens of swagger files because this issue. |
Have you tried the intermediate solution above, until @Vovanella95 or @fryette responds ? |
You can use the following until a new version is released. swagger_dart_code_generator:
git:
url: https://github.com/af-chacon/swagger-dart-code-generator
ref: user/aedis/fix-chopper-8-iterceptor-generation |
Any updates on this, guys? @Vovanella95 @fryette ? Is there a chance you give merge/publish permissions for anyone else? |
Should be fine in next release |
Describe the bug
Generated code is failing on
interceptors
because of breaking changes in chopper v8.0.0To Reproduce
Expected behavior
Flawless code generation
Swagger specification link
Links to breaking change in chopper:
https://pub.dev/packages/chopper/changelog
lejard-h/chopper#547
Library version used:
swagger_dart_code_generator: ^2.15.2
Additional context
Seems still valid if chopper v.7.4.x is used
The text was updated successfully, but these errors were encountered: