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

[BUG] [dart-dio] Support for Analyzer configuration options changes in Dart 3 #15908

Closed
4 of 6 tasks
souta0104 opened this issue Jun 23, 2023 · 1 comment
Closed
4 of 6 tasks

Comments

@souta0104
Copy link

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Analyzer configuration options changed in Dart 3, removing the implicit-casts and implicit-dynamic options.
https://dart.dev/resources/dart-3-migration#analyzer-config

If you are using Dart 3 and have specified these options in analysis_options.yaml, running the flutter analyze command will be treated as a warning.

The analysis_options.yaml in the Dart code generated by openapi-generator contains these options, so you need to migrate and fix it so that it does not contain these options.

openapi-generator version

6.4.0

Related issues/PRs

It could not be discovered on its own.

Suggest a fix

I am not familiar with the openapi-generator implementation, so this is inaccurate, but you should probably just modify the code in this section according to the migration guide.
https:// dart.dev/resources/dart-3-migration#analyzer-config

strong-mode:
implicit-dynamic: false
implicit-casts: false

@souta0104
Copy link
Author

It was resolved. thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant