[Dart] Convert DioError to DioException#15783
Conversation
|
@Rexios80 thanks for the PR. Can you please take a look at the CI failure when you've time? https://github.com/OpenAPITools/openapi-generator/actions/runs/5201409315/jobs/9393144388?pr=15783 |
|
@wing328 It seems to be a dependency resolution issue. The workflow uses Dart |
|
Dart 2.15.0 was released on Dec 2021: https://dart.dev/guides/language/evolution#dart-215 With this change, we completely drop Dart 2.15.0 support, right? What's the minimum version the auto-generated Dart SDK will support in the upcoming v7.0.0 release? Is everyone ok with that? I can't seem to find EOL of Dart releases. If anyone has the info, Please share. cc @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) @ahmednfwela (2021/08) |
|
It's not a problem with dart version, it's just for some reason pulling dio 5.0.0 as can be seen here this is because you forgot to change the dio version in the test project here, since it doesn't get auto generated |
|
@Rexios80 Can you please bump dio to 5.2.1 - (5.2.0+2) does actually not exist - see my PR here: cfug/dio#1861 Also, with this change we do drop support for dio < 5.2.0 so we need to raise it in the @wing328 This will still support Dart 2.15 |
|
@Rexios80 I think you need to regenerate samples with the new dio version |
|
@wing328 Can you please approve? |
|
CI tests still failed: https://github.com/OpenAPITools/openapi-generator/actions/runs/5254958800/jobs/9516265653?pr=15783 please take another look when you've time. |
|
Yea not all samples seem to be up-to-date. |
|
There weren't any changes. I already ran The files the tests are complaining about don't contain any references to |
|
There are probably new changes on the master branch which you need to merge into your branch before. |
|
can you please run the script to regenerate the samples one more time? https://github.com/OpenAPITools/openapi-generator/actions/runs/5266780237/jobs/9543293287?pr=15783 |
|
updated samples via e248046 let's see how that goes |
* Convert `DioError` to `DioException` * Update samples * Update dio version in example * Use proper dio version * Regenerate dart samples * Regenerate * Regenerate samples * update samples * remove outdated test files * update test * remove outdated test files --------- Co-authored-by: William Cheng <wing328hk@gmail.com>
The class
DioErrorhas been deprecated in favor ofDioExcptionhttps://pub.dev/packages/dio/changelog#520
This command didn't run on my machine:
./bin/utils/export_docs_generators.sh@jaumard @josh-burton @amondnet @sbu-WBT @kuhnroyal @agilob @ahmednfwela
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master(6.3.0) (minor release - breaking changes with fallbacks),7.0.x(breaking changes without fallbacks)