File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages
samples/openapi3/client/petstore/dart-dio
oneof_polymorphism_and_inheritance
petstore_client_lib_fake-json_serializable Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public class DartDioClientCodegen extends AbstractDartCodegen {
72
72
public static final String FINAL_PROPERTIES_DEFAULT_VALUE = "true" ;
73
73
74
74
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 " ;
76
76
77
77
private static final String CLIENT_NAME = "clientName" ;
78
78
@@ -144,7 +144,7 @@ public DartDioClientCodegen() {
144
144
145
145
// Support Dart 2 Option
146
146
final CliOption supportDart2 = CliOption .newBoolean (SUPPORT_DART2 , "Use dependencies compatible with Dart 2." );
147
- supportDart2 .setDefault ("false " );
147
+ supportDart2 .setDefault ("true " );
148
148
cliOptions .add (supportDart2 );
149
149
}
150
150
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
9
9
10
10
## Requirements
11
11
12
- * Dart 3.0 .0+ or Flutter 2.8.0+
12
+ * Dart 2.15 .0+ or Flutter 2.8.0+
13
13
* Dio 5.0.0+ (https://pub.dev/packages/dio )
14
14
15
15
## Installation & Usage
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
10
10
11
11
## Requirements
12
12
13
- * Dart 3.0 .0+ or Flutter 2.8.0+
13
+ * Dart 2.15 .0+ or Flutter 2.8.0+
14
14
* Dio 5.0.0+ (https://pub.dev/packages/dio )
15
15
16
16
## Installation & Usage
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
9
9
10
10
## Requirements
11
11
12
- * Dart 3.0 .0+ or Flutter 2.8.0+
12
+ * Dart 2.15 .0+ or Flutter 2.8.0+
13
13
* Dio 5.0.0+ (https://pub.dev/packages/dio )
14
14
15
15
## Installation & Usage
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
9
9
10
10
## Requirements
11
11
12
- * Dart 3.0 .0+ or Flutter 2.8.0+
12
+ * Dart 2.15 .0+ or Flutter 2.8.0+
13
13
* Dio 5.0.0+ (https://pub.dev/packages/dio )
14
14
* JSON Serializable 6.1.5+ (https://pub.dev/packages/json_serializable )
15
15
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ description: OpenAPI API client
4
4
homepage : homepage
5
5
6
6
environment :
7
- sdk : ' >=3.0 .0 <4.0.0'
7
+ sdk : ' >=2.17 .0 <4.0.0'
8
8
9
9
dependencies :
10
10
dio : ' ^5.2.0'
11
11
json_annotation : ' ^4.4.0'
12
12
13
13
dev_dependencies :
14
14
build_runner : any
15
- json_serializable : ' ^ 6.9.0'
15
+ json_serializable : ' >=6.1.5 < 6.9.0'
16
16
test : ^1.16.0
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
9
9
10
10
## Requirements
11
11
12
- * Dart 3.0 .0+ or Flutter 2.8.0+
12
+ * Dart 2.15 .0+ or Flutter 2.8.0+
13
13
* Dio 5.0.0+ (https://pub.dev/packages/dio )
14
14
15
15
## Installation & Usage
You can’t perform that action at this time.
0 commit comments