Updates to tests

This commit is contained in:
Michael Bisbjerg 2016-07-20 22:52:16 +02:00
parent 89880f22a6
commit f561c11d20

View File

@ -9,7 +9,10 @@ namespace TMDbLibTests.JsonHelpers
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
{
JsonProperty res = base.CreateProperty(member, memberSerialization);
res.Required = Required.AllowNull;
if (!res.Ignored)
// If we haven't explicitly stated that a field is not needed, we require it for compliance
res.Required = Required.AllowNull;
return res;
}