-Fixed not parsing some ISO date timezones

-Fixed float schema validation of integer values
-Changed writing of IConvertible values to convert objects to strings
-Fixed serializing proxy objects with no default constructor
This commit is contained in:
James Newton-King
2013-10-04 22:29:32 +13:00
parent e77fdf285b
commit 107d15a38d
10 changed files with 163 additions and 18 deletions
@@ -404,7 +404,7 @@ namespace Newtonsoft.Json.Schema
return true;
// integer is a subset of float
if (value == JsonSchemaType.Float && flag == JsonSchemaType.Integer)
if (flag == JsonSchemaType.Integer && (value & JsonSchemaType.Float) == JsonSchemaType.Float)
return true;
return false;