-Added support for ShouldSerialize conditional methods
-Fixed not correctly skipping ignored JSON properties when deserializing via a non-default constructor
This commit is contained in:
@@ -360,7 +360,8 @@ namespace Newtonsoft.Json.Schema
|
||||
if (!property.Ignored)
|
||||
{
|
||||
bool optional = property.NullValueHandling == NullValueHandling.Ignore ||
|
||||
property.DefaultValueHandling == DefaultValueHandling.Ignore;
|
||||
property.DefaultValueHandling == DefaultValueHandling.Ignore ||
|
||||
property.ShouldSerialize != null;
|
||||
|
||||
JsonSchema propertySchema = GenerateInternal(property.PropertyType, property.Required, optional);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user