Skip to content

Allow @JsonKey to be used on constructor parameters #1505

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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

huanghui1998hhh
Copy link

@huanghui1998hhh huanghui1998hhh commented Jul 1, 2025

About #1437

Allow @JsonKey to be used on constructor parameters, where the @JsonKey properties will override the corresponding field properties.

@huanghui1998hhh
Copy link
Author

I noticed that the current master branch has WIP commits, so I didn't update the CHANGELOG.md.

@huanghui1998hhh
Copy link
Author

@kevmoo Request for review

@huanghui1998hhh
Copy link
Author

@kevmoo I can run workflow successfully in my forked repo.
https://github.com/huanghui1998hhh/json_serializable.dart.official/actions/runs/16040656161
Please take a look.

@huanghui1998hhh huanghui1998hhh requested a review from kevmoo July 18, 2025 02:42
@kevmoo
Copy link
Collaborator

kevmoo commented Jul 24, 2025

failing tests?

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.

We'll need changelog entries for both packages, too.

@huanghui1998hhh
Copy link
Author

@kevmoo
There are some additional warnings that cause the test to fail

W SDK language version 3.10.0 is newer than analyzer language version 3.9.0. Run dart pub upgrade.

This dosen't seems to be caused by my commit. Should I modify annotation_version_test?

@huanghui1998hhh huanghui1998hhh requested a review from kevmoo July 24, 2025 07:53
@huanghui1998hhh
Copy link
Author

@kevmoo There are some additional warnings that cause the test to fail

W SDK language version 3.10.0 is newer than analyzer language version 3.9.0. Run dart pub upgrade.

This dosen't seems to be caused by my commit. Should I modify annotation_version_test?

@kevmoo I need some help. We need to bump analyzer to 8.0.0 to pass the tests, but there are many version conflicts. Many packages have not yet adapted to analyzer 8.0.0.

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.

2 participants