[Discussion] Remove Dart (1)
See original GitHub issueOpenapi 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 withdart2
- 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 muchdart
(1) doesnt have own specific documentation -dart.md
describesdart2
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:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top 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 >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
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.
Dart as a language is coming of age so I think just
dart
would do it justice.