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

Configuration level to define when to not serialize the Optional property (undefined) #1

Closed
Nness opened this issue May 11, 2023 · 2 comments
Assignees

Comments

@Nness
Copy link
Collaborator

Nness commented May 11, 2023

This was achieved in NewtonSoft.Json through DefaultContractResolver. At the time of implementation, System.Text.Json does not have anything equivalent.

People have logged following issue.
dotnet/runtime#31257

Microsoft's potential equivalent, need to test out.
dotnet/runtime#63686

Part of change in:
dotnet/runtime#36785

@Nness Nness self-assigned this May 11, 2023
@Nness
Copy link
Collaborator Author

Nness commented May 11, 2023

.net 8 change in coming.
dotnet/runtime#71967

Nness added a commit that referenced this issue May 15, 2023
Nness added a commit that referenced this issue May 15, 2023
Nness added a commit that referenced this issue May 15, 2023
Nness added a commit that referenced this issue May 15, 2023
@Nness Nness closed this as completed May 15, 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

No branches or pull requests

1 participant