Skip to content

Commit

Permalink
default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Feb 9, 2025
1 parent cc0ca5a commit 5b43171
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class DartDioClientCodegen extends AbstractDartCodegen {
public static final String FINAL_PROPERTIES_DEFAULT_VALUE = "true";

public static final String SUPPORT_DART2 = "supportDart2";
public static final String SUPPORT_DART2_DEFAULT_VALUE = "false";
public static final String SUPPORT_DART2_DEFAULT_VALUE = "true";

private static final String CLIENT_NAME = "clientName";

Expand Down Expand Up @@ -144,7 +144,7 @@ public DartDioClientCodegen() {

// Support Dart 2 Option
final CliOption supportDart2 = CliOption.newBoolean(SUPPORT_DART2, "Use dependencies compatible with Dart 2.");
supportDart2.setDefault("false");
supportDart2.setDefault("true");
cliOptions.add(supportDart2);
}

Expand Down
2 changes: 1 addition & 1 deletion samples/openapi3/client/petstore/dart-dio/oneof/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://

## Requirements

* Dart 3.0.0+ or Flutter 2.8.0+
* Dart 2.15.0+ or Flutter 2.8.0+
* Dio 5.0.0+ (https://pub.dev/packages/dio)

## Installation & Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://

## Requirements

* Dart 3.0.0+ or Flutter 2.8.0+
* Dart 2.15.0+ or Flutter 2.8.0+
* Dio 5.0.0+ (https://pub.dev/packages/dio)

## Installation & Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://

## Requirements

* Dart 3.0.0+ or Flutter 2.8.0+
* Dart 2.15.0+ or Flutter 2.8.0+
* Dio 5.0.0+ (https://pub.dev/packages/dio)

## Installation & Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://

## Requirements

* Dart 3.0.0+ or Flutter 2.8.0+
* Dart 2.15.0+ or Flutter 2.8.0+
* Dio 5.0.0+ (https://pub.dev/packages/dio)
* JSON Serializable 6.1.5+ (https://pub.dev/packages/json_serializable)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ description: OpenAPI API client
homepage: homepage

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=2.17.0 <4.0.0'

dependencies:
dio: '^5.2.0'
json_annotation: '^4.4.0'

dev_dependencies:
build_runner: any
json_serializable: '^6.9.0'
json_serializable: '>=6.1.5 <6.9.0'
test: ^1.16.0
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://

## Requirements

* Dart 3.0.0+ or Flutter 2.8.0+
* Dart 2.15.0+ or Flutter 2.8.0+
* Dio 5.0.0+ (https://pub.dev/packages/dio)

## Installation & Usage
Expand Down

0 comments on commit 5b43171

Please sign in to comment.