Skip to content

Commit 72a509b

Browse files
feat(cli): remove unsupported flags for DioAltProperties
1 parent 2fdd022 commit 72a509b

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

openapi-generator-annotations/lib/src/openapi_generator_annotations_base.dart

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -521,14 +521,6 @@ class DioProperties extends AdditionalProperties {
521521
}
522522

523523
class DioAltProperties extends AdditionalProperties {
524-
/// Changes the minimum version of Dart to 2.12 and generate null safe code
525-
final bool? nullSafe;
526-
527-
/// nullSafe-array-default
528-
/// Makes even arrays that are not listed as being required in your OpenAPI "required"
529-
/// but making them always generate a default value of []
530-
final bool? nullSafeArrayDefault;
531-
532524
/// This will turn off AnyOf support. This would be a bit weird, but you can do it if you want.
533525
final bool? listAnyOf;
534526

@@ -541,8 +533,7 @@ class DioAltProperties extends AdditionalProperties {
541533
final String? pubspecDevDependencies;
542534

543535
const DioAltProperties(
544-
{this.nullSafe,
545-
this.nullSafeArrayDefault,
536+
{
546537
this.pubspecDependencies,
547538
this.pubspecDevDependencies,
548539
this.listAnyOf,
@@ -580,18 +571,13 @@ class DioAltProperties extends AdditionalProperties {
580571
wrapper: wrapper);
581572

582573
DioAltProperties.fromMap(Map<String, dynamic> map)
583-
: nullSafe = map['nullSafe'],
584-
nullSafeArrayDefault = map['nullSafeArrayDefault'],
585-
listAnyOf = map['listAnyOf'],
574+
: listAnyOf = map['listAnyOf'],
586575
pubspecDependencies = map['pubspecDependencies'],
587576
pubspecDevDependencies = map['pubspecDevDependencies'],
588577
super.fromMap(map);
589578

590579
Map<String, dynamic> toMap() => Map.from(super.toMap())
591580
..addAll({
592-
if (nullSafe != null) 'nullSafe': nullSafe,
593-
if (nullSafeArrayDefault != null)
594-
'nullSafeArrayDefault': nullSafeArrayDefault,
595581
if (listAnyOf != null) 'listAnyOf': listAnyOf,
596582
if (pubspecDependencies != null)
597583
'pubspecDependencies': pubspecDependencies,

0 commit comments

Comments
 (0)