[BUG] DART Generator dependencies are outdated
See original GitHub issueBug 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
The DART code generator has outdated dependencies, namly intl
and http
. These outdated dependencies affect the use of generated Dart clients in Flutter projects.
openapi-generator version
5.1.2-master
OpenAPI declaration file content or url
Generation Details
java -jar openapi-generator-cli.jar generate -i http://localhost:8080/swagger/OpenApiDocument/swagger.json -g dart -o ./apiclient -p pubName=apiclient --enable-post-process-file --skip-validate-spec
Steps to reproduce
Generate a DART api client and try to use it in a Flutter project.
Related issues/PRs
Suggest a fix
Update the dependenies in the pubspec.yaml to a newer version, and slightly adjust the way URI’s are handled by the API client. I have a PR coming in shortly for this.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
dart pub outdated
Run dart pub outdated to identify which package dependencies are out-of-date. · Run dart pub outdated to confirm that you're using the latest...
Read more >[BUG][dart-dio] syntax error stopping build_runner ... - GitHub
dart -dio fails to generate the Twitter v2 API spec. The outputted code has syntax errors that does not allow build_runner to generate...
Read more >stacked_generator | Dart Package - Pub.dev
Stacked Generator is a package dedicated to reduce the boilerplate required to setup a stacked application.
Read more >flutter pub run build_runner build failed - dart - Stack Overflow
I deleted pubspec.lock and ran flutter pub get and installed dependency again and ran above command. After this error gone.
Read more >How to Auto-Generate your Providers with Flutter Riverpod ...
Thanks to the new Riverpod Generator package, we no longer have to declare providers ... access dependencies in our code (with Provider ) ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I opened the PR. It’s my first time contributing to an open-source project, so if I’ve made a meal of it just let me know 😊
@lewcianci Thank you for you work on the dependencies! Unfortunately I have not seen your PR earlier and it looks like we have now settled with #9392. If you mention the Dart technical committee in your next PR and/or issue, we will get notified directly. It would be much appreciated if you can review and possibly test #9392 to see if it meets your requirements.