-
Notifications
You must be signed in to change notification settings - Fork 176
fix(flutter-freezed): missing comma in enums #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add missing trailing comma for enum values Before ```dart enum AssetOrder { @jsonkey(name: 'contentType_ASC') contentTypeAsc @jsonkey(name: 'contentType_DESC') contentTypeDesc } ``` Now ```dart enum AssetOrder { @jsonkey(name: 'contentType_ASC') contentTypeAsc, @jsonkey(name: 'contentType_DESC') contentTypeDesc, } ```
🦋 Changeset detectedLatest commit: 9c972ab The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@Parables can you check this out? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should add a test for this
@MitkoTschimev thanks for trying out this plugin and for the PR. I sincerely appreciate your contribution To get your PR merged, please complete the following:
|
@saihaj how can I do that on my end here and push it back into this PR? |
I think @MitkoTschimev can update tests? |
@MitkoTschimev, please do this and let's get this fixed as soon as possible. |
Let me take a look tomorrow to fix the tests |
@MitkoTschimev, any updates on this? If it's okay with you, I can fix this and tag you on the PR attributing the fix to you. |
sorry for the late response :( was very busy at business! but let us check how we could improve it. maybe we can generate a real dart file and trigger the dart linter against it when the tests run. This way we can also cover dart updates in the future if the syntax / common linting rules are changing. |
@saihaj please can we get this PR merged now |
@MitkoTschimev I love your suggestion... I will get that done ASAP |
@MitkoTschimev can you add a changeset for this? run |
Give me a second ;) just coming back from a nursery event from my son :) |
@MitkoTschimev you can include the before and after code snippet you used in the issue to add a bit of context about the change |
@saihaj please proceed to release this I will submit another one that addresses some typos and misleading code samples in the guide and the plugin config as well as the live demo |
Add missing trailing comma for enum values
Before
Now
🚨 IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Related # (issue)
Type of change
Please delete options that are not relevant.
Screenshots/Sandbox (if appropriate/relevant):
Adding links to sandbox or providing screenshots can help us understand more about this PR and take action on it as appropriate
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Environment:
@graphql-codegen/...
:Checklist:
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...