Skip to content
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

BREAKING: Add Chopper 8 support #755

Merged

Conversation

zbarbuto
Copy link
Contributor

@zbarbuto zbarbuto commented Jun 14, 2024

Use List<Interceptor> for interceptors to support Chopper 8.

This is a breaking change as the typings for interceptor are now more strict. Technically, older versions of Chopper could be supported by using List<dynamic> instead of the Iterable<dynamic> that it was but IMO it's nice to keep the types in-line with that Chopper actually expects.

The example project was re-generated (which it looks like it hasn't been since #724) hence the changes to the == operator overloads.

Closes #754

Use `List<Interceptor>` for interceptors to support Chopper 8.

Closes epam-cross-platform-lab#754
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.81%. Comparing base (9533c64) to head (e583920).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #755   +/-   ##
=======================================
  Coverage   54.81%   54.81%           
=======================================
  Files          10       10           
  Lines        1268     1268           
=======================================
  Hits          695      695           
  Misses        573      573           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dJani97
Copy link

dJani97 commented Jul 24, 2024

This PR changes the generated List<dynamic> to List<Interceptor> in my project, so it seems to work as intended. Now my project works well with Chopper 8.

Can we please get this update sometime soon?

@Vovanella95 Vovanella95 merged commit 74d4b8a into epam-cross-platform-lab:master Jul 24, 2024
3 checks passed
AnnaKandel added a commit to arnac-io/swagger-dart-code-generator that referenced this pull request Oct 30, 2024
AnnaKandel pushed a commit to arnac-io/swagger-dart-code-generator that referenced this pull request Nov 3, 2024
Use `List<Interceptor>` for interceptors to support Chopper 8.

Closes epam-cross-platform-lab#754
AnnaKandel pushed a commit to arnac-io/swagger-dart-code-generator that referenced this pull request Nov 3, 2024
Use `List<Interceptor>` for interceptors to support Chopper 8.

Closes epam-cross-platform-lab#754
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Incorrect interceptors datatype with Chopper: 8.0.0 vresion
3 participants