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.

[Discussion] Remove Dart (1)

See original GitHub issue

Openapi supports dart and dart2. Language didn’t have many breaking changes between versions these and it can only add confusion, never seen anyone referring to Dart as dart2, it’s always dart or dartlang.

  • dart generator doesn’t seem to be tested properly and it shares generator code with dart2
  • there is no dart1 or dart2 specific schemas: dart-jaguar-openapi-flutter_proto.yaml dart-jaguar-openapi_proto.yaml dart-openapi-browser-client.yaml dart-openapi.yaml dart-jaguar-openapi-flutter.yaml dart-jaguar-openapi.yaml dart-openapi-flutter.yaml dart-petstore_client_lib.yaml
  • dart(1) is using outdated syntax and is doing too much
  • dart (1) doesnt have own specific documentation - dart.md describes dart2 generator
  • some of the schemas, specifically say not to use dart2 generator, but dart which isn’t supported
cat bin/configs/dart-openapi-flutter.yaml
generatorName: dart
outputDir: samples/client/petstore/dart/flutter_petstore/openapi
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/dart
additionalProperties:
  supportDart2: "false"
  hideGenerationTimestamp: "true"
  browserClient: "false"
  • dart(1) is also trying to solve flutter (ui framework) generation adding extra external dependencies to generated code (also badly out of date, at least 3 years, language and framework changed a lot)
    • I personally see no need to add complexity of generating flutter-specific code, openapi should generate models what can be imported by flutter

Calling active dart contributors: @noordawod @sbu-WBT @josh-burton @syky27

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wing328commented, Oct 3, 2020

Yes, make sense. I already marked Dart 1.x support as deprecated via https://github.com/OpenAPITools/openapi-generator/pull/3790 so it shouldn’t be a surprise to our users Dart 1.x support is gone in the upcoming v5.0.0 major release.

0reactions
noordawodcommented, Oct 3, 2020

Dart as a language is coming of age so I think just dart would do it justice.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pub/remove.dart at master · dart-lang/pub - GitHub
solver.dart';. /// Handles the `remove` pub command. Removes dependencies from `pubspec.yaml`,. /// and performs an operation similar to `pub get`.
Read more >
Dart Programming - Removing List items - Tutorialspoint
Dart Programming - Removing List items, The following functions supported by the List class in the dart:core library can be used to remove...
Read more >
Dart Set remove by index - Stack Overflow
1 Answer 1 ... Error: RangeError (index): Index out of range means that index 3 is more than the list length. Example: final...
Read more >
Sleep dart needs to be removed for OW2 - Blizzard Forums
If Blizzard is removing CC for roles other than tank, there is NO justification for them keeping the literal most oppressive CC in...
Read more >
Unsound null safety - Dart
This page describes the differences between sound and unsound null safety, with the goal of helping you decide when to migrate to null...
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