question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] DART Generator dependencies are outdated

See original GitHub issue

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

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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
azimuthdevelopercommented, Apr 29, 2021

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 😊

1reaction
kuhnroyalcommented, May 4, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found