Skip to content
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

feat: support ignoring custom types that StandardJsonPlugin should le… #1296

Conversation

Leptopoda
Copy link
Contributor

…ave as lists

fixes: #1295

I was not sure how to best unit test this so I just used my own usecase.
Please suggest any other ways to test this if you don't like this approach.

Copy link
Collaborator

@davidmorgan davidmorgan left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! One suggestion.

built_value/lib/standard_json_plugin.dart Outdated Show resolved Hide resolved
@Leptopoda Leptopoda force-pushed the feat/standard_json_plugin_ignored_list_types branch 2 times, most recently from be84332 to 51fa6e6 Compare January 10, 2024 13:29
…ave as lists

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
@Leptopoda Leptopoda force-pushed the feat/standard_json_plugin_ignored_list_types branch from 51fa6e6 to 2396a29 Compare January 10, 2024 13:50
@Leptopoda
Copy link
Contributor Author

Sorry for the noise. The presubmit was throwing on dart 3.0.7 making everything harder and I first had to upgrade my dart version.

@Leptopoda Leptopoda requested a review from davidmorgan January 10, 2024 13:57
@davidmorgan
Copy link
Collaborator

Looks good, thanks!

@davidmorgan davidmorgan merged commit 861fadb into google:master Jan 10, 2024
3 checks passed
@Leptopoda Leptopoda deleted the feat/standard_json_plugin_ignored_list_types branch January 10, 2024 15:03
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.

Record list serialization unexpectedly converted to a map by StandardJsonPlugin.
2 participants