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

Fix json serializable annotation for ignored field #3631

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

natebosch
Copy link
Member

The annotation was last changed in
#3445

The intention of the change was to retain behavior of passing the
deprecated option ignore: true. The replacement is to use two fields
includeToJson and includeFromJson which allow more fine-grained
configuration, but also invert the condition. The boolean must be
false to retain old behavior.

Before this change rerunning code generation would result in a change to
build_config.g.gdart. After this change the build is a no-op.

The annotation was last changed in
#3445

The intention of the change was to retain behavior of passing the
deprecated option `ignore: true`. The replacement is to use two fields
`includeToJson` and `includeFromJson` which allow more fine-grained
configuration, but also invert the condition. The boolean must be
`false` to retain old behavior.

Before this change rerunning code generation would result in a change to
`build_config.g.gdart`. After this change the build is a no-op.
@natebosch natebosch merged commit 37e45e3 into master Jan 11, 2024
70 checks passed
@natebosch natebosch deleted the json-serializable-config branch January 11, 2024 20:43
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