Skip to content

Commit

Permalink
Fixed lowercase enum properties (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrischbutter authored Oct 31, 2022
1 parent 6d67926 commit acd4d18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/code_generators/swagger_enums_generator.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:collection/collection.dart';
import 'package:recase/recase.dart';
import 'package:swagger_dart_code_generator/src/code_generators/constants.dart';
import 'package:swagger_dart_code_generator/src/code_generators/swagger_generator_base.dart';
Expand All @@ -9,7 +10,6 @@ import 'package:swagger_dart_code_generator/src/swagger_models/requests/swagger_
import 'package:swagger_dart_code_generator/src/swagger_models/responses/swagger_schema.dart';
import 'package:swagger_dart_code_generator/src/swagger_models/swagger_path.dart';
import 'package:swagger_dart_code_generator/src/swagger_models/swagger_root.dart';
import 'package:collection/collection.dart';

abstract class SwaggerEnumsGenerator extends SwaggerGeneratorBase {
final GeneratorOptions _options;
Expand Down Expand Up @@ -393,8 +393,8 @@ $enumMap
var result = '';

schema.items?.properties.forEach((key, value) {
result +=
generateEnumContentIfPossible(value, '$className\$Item$key');
result += generateEnumContentIfPossible(
value, '$className\$Item${key.pascalCase}');
});

return result;
Expand Down

0 comments on commit acd4d18

Please sign in to comment.