Skip to content

Conversation

@davidmorgan
Copy link
Collaborator

Fix rrousselGit/freezed#1289

Freezed copies annotations onto generated code, which triggers the json_serializable warning.

Fix by skipping warning if the value matches.

I'm not 100% sure about the implementation, I did add a test, but please do check it makes sense :)

@davidmorgan davidmorgan requested a review from kevmoo November 14, 2025 14:22
@davidmorgan davidmorgan marked this pull request as ready for review November 14, 2025 14:22
Copy link
Collaborator

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

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

Thanks! Want me to publish soonish?

@kevmoo kevmoo merged commit 8288fa3 into google:master Nov 16, 2025
18 checks passed
@davidmorgan davidmorgan deleted the skip-warning branch November 17, 2025 09:13
@davidmorgan
Copy link
Collaborator Author

@kevmoo

Publish sounds good to me, yes please, there are quite a few people interested in this it seems :)

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.

New warnings with json_serializable>=6.11.0 (conflicting parameters)

2 participants