-Added XmlSerializer style Specified property support

This commit is contained in:
JamesNK
2010-11-25 08:17:22 +00:00
parent efc2310a3d
commit 2eb0d3bf48
7 changed files with 192 additions and 10 deletions
@@ -361,7 +361,8 @@ namespace Newtonsoft.Json.Schema
{
bool optional = property.NullValueHandling == NullValueHandling.Ignore ||
property.DefaultValueHandling == DefaultValueHandling.Ignore ||
property.ShouldSerialize != null;
property.ShouldSerialize != null ||
property.GetIsSpecified != null;
JsonSchema propertySchema = GenerateInternal(property.PropertyType, property.Required, optional);