Skip to content

Conversation

luca-vz
Copy link

@luca-vz luca-vz commented Mar 7, 2023

Generating enums with an itemType int/double created maps and extensions where the itemType was still a String, this has been changed. Besides that the name of xMapping of an enum was first generated as XMapping and is now getting generated correctly (xMapping).

@ikbendewilliam
Copy link
Contributor

Next time add an issue with the details of what went wrong

@ikbendewilliam
Copy link
Contributor

LGTM
Sidenote, create a new issue for the deprecated lint rule and ignore field

   info • 'invariant_booleans' is a deprecated lint rule and should not be used
          • example/analysis_options.yaml:58:7 • deprecated_lint_hint
   info • 'ignore' is deprecated and shouldn't be used. Use `includeFromJson`
          and `includeToJson` with a value of `false` instead •
          example/lib/model/user/testing.dart:13:55 • deprecated_member_use

String get lowerCamelCase => _getLowerCamelCase();

String get camelCase => _getCamelCase();
String get upperCamelCase => _getUpperCamelCase();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no such thing as upperCamelCase. This is just PascalCase

@vanlooverenkoen
Copy link
Contributor

Ticket created for the ignore: #134

@vanlooverenkoen vanlooverenkoen merged commit 95c36ad into master Mar 8, 2023
@vanlooverenkoen vanlooverenkoen deleted the fix-enum-map-and-extension branch March 8, 2023 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants