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 {
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
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://
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
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://
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
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://
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
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://
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
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ description: OpenAPI API client
44homepage : homepage
55
66environment :
7- sdk : ' >=3.0 .0 <4.0.0'
7+ sdk : ' >=2.17 .0 <4.0.0'
88
99dependencies :
1010 dio : ' ^5.2.0'
1111 json_annotation : ' ^4.4.0'
1212
1313dev_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
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://
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
You can’t perform that action at this time.
0 commit comments