Skip to content

Commit 5b43171

Browse files
committed
default to true
1 parent cc0ca5a commit 5b43171

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class DartDioClientCodegen extends AbstractDartCodegen {
7272
public static final String FINAL_PROPERTIES_DEFAULT_VALUE = "true";
7373

7474
public static final String SUPPORT_DART2 = "supportDart2";
75-
public static final String SUPPORT_DART2_DEFAULT_VALUE = "false";
75+
public static final String SUPPORT_DART2_DEFAULT_VALUE = "true";
7676

7777
private static final String CLIENT_NAME = "clientName";
7878

@@ -144,7 +144,7 @@ public DartDioClientCodegen() {
144144

145145
// Support Dart 2 Option
146146
final CliOption supportDart2 = CliOption.newBoolean(SUPPORT_DART2, "Use dependencies compatible with Dart 2.");
147-
supportDart2.setDefault("false");
147+
supportDart2.setDefault("true");
148148
cliOptions.add(supportDart2);
149149
}
150150

samples/openapi3/client/petstore/dart-dio/oneof/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
99

1010
## Requirements
1111

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

1515
## Installation & Usage

samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
1010

1111
## Requirements
1212

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

1616
## Installation & Usage

samples/openapi3/client/petstore/dart-dio/oneof_primitive/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
99

1010
## Requirements
1111

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

1515
## Installation & Usage

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
99

1010
## Requirements
1111

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

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: OpenAPI API client
44
homepage: homepage
55

66
environment:
7-
sdk: '>=3.0.0 <4.0.0'
7+
sdk: '>=2.17.0 <4.0.0'
88

99
dependencies:
1010
dio: '^5.2.0'
1111
json_annotation: '^4.4.0'
1212

1313
dev_dependencies:
1414
build_runner: any
15-
json_serializable: '^6.9.0'
15+
json_serializable: '>=6.1.5 <6.9.0'
1616
test: ^1.16.0

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
99

1010
## Requirements
1111

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

1515
## Installation & Usage

0 commit comments

Comments
 (0)