Skip to content

Fix ImmutableConverter.cs #572

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

Merged
merged 3 commits into from
Sep 29, 2023
Merged

Conversation

JorisVanEijden
Copy link
Contributor

Swap properties and parameters in applicability check of ImmutableConverter. This prevents properties from being lost when they are not all represented in the contructor as parameters.

Fixes #571

Swap properties and parameters in applicability check of ImmutableConverter.
This prevents properties from being lost when they are not all represented in the contructor as parameters.
@JorisVanEijden JorisVanEijden changed the title Update ImmutableConverter.cs Fix ImmutableConverter.cs Jun 2, 2023
Copy link
Collaborator

@rose-a rose-a left a comment

Choose a reason for hiding this comment

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

Hi, thanks for your contribution! Please move the new unit test into BaseSerializerTest, we should make sure this behavior is consistent across all serializers...

@JorisVanEijden
Copy link
Contributor Author

Hi, thanks for your contribution! Please move the new unit test into BaseSerializerTest, we should make sure this behavior is consistent across all serializers...

Done.

@rose-a
Copy link
Collaborator

rose-a commented Jun 13, 2023

👍 I'll try to review it this week...

@rose-a rose-a merged commit 5436fac into graphql-dotnet:master Sep 29, 2023
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.

ImmutableConverter bug when object has both constructor and properties
3 participants