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

Allow Output to ignore @transientDefault #633

Merged
merged 8 commits into from
Sep 30, 2024
Merged

Conversation

sebaciv
Copy link
Contributor

@sebaciv sebaciv commented Sep 21, 2024

Implement IgnoreTransientDefaultMarker that allows Output implementation to instruct GenCodec instance to ignore
@transientDefault annotation on case class fields and serialize all fields even when field value is equal to it's default value.

Allowing this behaviour can be helpful when using the same model class in multiple contexts with different serialization
formats that have conflicting requirements for handling default values.

@sebaciv sebaciv self-assigned this Sep 21, 2024
@sebaciv sebaciv marked this pull request as ready for review September 23, 2024 18:16
@halotukozak halotukozak self-requested a review September 25, 2024 09:43
@halotukozak halotukozak self-requested a review September 25, 2024 09:46
@halotukozak
Copy link
Member

LGTM

@sebaciv sebaciv merged commit e950fc6 into master Sep 30, 2024
7 checks passed
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.

3 participants