-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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user