[JsonSerializer] Add test for JsonIncludeAttribute + parameterized ctor deserialization #47855
Labels
area-System.Text.Json
good first issue
Issue should be easy to implement, good for first-time contributors
help wanted
[up-for-grabs] Good issue for external contributors
test-enhancement
Improvements of test source code
Milestone
We should add a test for what happens when a constructor parameter is supposed to bind with a property that would normally not be included for deserialization, but is included via
[JsonInclude]
. Deserialization should proceed as expected.We should also test that
JsonNumberHandlingAttribute
is honored.JsonConverterAttribute
,JsonIgnoreAttribute
, andJsonPropertyNameAttribute
are tested and known to be honored in this scenario.Edit: the above test should work today with and without the attribute. I believe it becomes more applicable when we have support for non-public members #31511:
The text was updated successfully, but these errors were encountered: