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

serializer: only inject properties to constructors of records #1525

Merged
merged 14 commits into from Dec 10, 2022

Conversation

exyi
Copy link
Member

@exyi exyi commented Dec 2, 2022

People were relying on the serializer not calling the constructor even when it contained what seemed to be properties. So we need to restrict the "record" behavior to records and to classes with explicitly marked JsonConstructor

People were relying on the serializer *not* calling the constructor
even when it contained what seemed to be properties. So we
need to restrict the "record" behavior to records and to classes
with explicitly marked JsonConstructor
@exyi exyi marked this pull request as ready for review December 7, 2022 21:48
@tomasherceg tomasherceg added this to the Version 4.1 milestone Dec 9, 2022
@tomasherceg tomasherceg merged commit 70ca6f2 into main Dec 10, 2022
@tomasherceg tomasherceg deleted the serializer-nerf-records branch December 10, 2022 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.

None yet

4 participants