Skip to content

Commit 2c6d9ed

Browse files
committed
#21582 [BUG][dart-dio] Bug generating inline enums with common names. Added generated files that where updated as a result of changes in master.
1 parent cf59992 commit 2c6d9ed

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/object_that_references_objects_with_duplicate_inline_enums.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
// ignore_for_file: unused_element
66
import 'package:openapi/src/model/object_with_duplicate_inline_enum.dart';
77
import 'package:openapi/src/model/object_with_inline_enum.dart';
8+
import 'package:copy_with_extension/copy_with_extension.dart';
89
import 'package:json_annotation/json_annotation.dart';
910

1011
part 'object_that_references_objects_with_duplicate_inline_enums.g.dart';
1112

1213

14+
@CopyWith()
1315
@JsonSerializable(
1416
checked: true,
1517
createToJson: true,

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/object_with_duplicate_inline_enum.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
//
44

55
// ignore_for_file: unused_element
6+
import 'package:copy_with_extension/copy_with_extension.dart';
67
import 'package:json_annotation/json_annotation.dart';
78

89
part 'object_with_duplicate_inline_enum.g.dart';
910

1011

12+
@CopyWith()
1113
@JsonSerializable(
1214
checked: true,
1315
createToJson: true,

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/object_with_inline_enum.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
//
44

55
// ignore_for_file: unused_element
6+
import 'package:copy_with_extension/copy_with_extension.dart';
67
import 'package:json_annotation/json_annotation.dart';
78

89
part 'object_with_inline_enum.g.dart';
910

1011

12+
@CopyWith()
1113
@JsonSerializable(
1214
checked: true,
1315
createToJson: true,

0 commit comments

Comments
 (0)