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

Add logic for JsonIgnoreCondition.[Never|WhenNull] on properties to win over global IgnoreReadOnlyValues #34672

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

layomia
Copy link
Contributor

@layomia layomia commented Apr 8, 2020

Options specified on properties should win over options set on JsonSerializerOptions. This change affects serialization only.

JsonIgnoreCondition was introduced in #34049 and was part of preview 3. This change will thus be a behavorial breaking change between preview 3 & 4 (but will likely not be noticed).

@layomia layomia added area-System.Text.Json breaking-change Issue or PR that represents a breaking API or functional change over a prerelease. labels Apr 8, 2020
@layomia layomia added this to the 5.0 milestone Apr 8, 2020
@layomia layomia self-assigned this Apr 8, 2020
@layomia layomia merged commit 6f080a4 into dotnet:master Apr 13, 2020
@danmoseley
Copy link
Member

@layomia this is labeled breaking change. Can you please open an issue with https://github.com/dotnet/docs/issues/new?template=dotnet-breaking-change.md

I don't see an existing one

@danmoseley danmoseley added the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Jul 30, 2020
@layomia
Copy link
Contributor Author

layomia commented Oct 3, 2020

This was a breaking change between previews (3 & 4) for a new feature, so no breaking change documentation is needed here.

@layomia layomia removed breaking-change Issue or PR that represents a breaking API or functional change over a prerelease. needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet labels Oct 3, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
@layomia layomia deleted the ignorereadonlyvalues_loses branch May 1, 2021 00:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants