-Fixed potential race condition serializing F# objects
-Fixed schema divisible sometimes incorrectly validating to false -Fixed not calling virtual ShouldSerialize methods
This commit is contained in:
@@ -308,6 +308,16 @@ namespace Newtonsoft.Json.Tests.Schema
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DivisibleBy_Approx()
|
||||
{
|
||||
JsonSchema schema = new JsonSchema();
|
||||
schema.DivisibleBy = 0.01;
|
||||
|
||||
JValue v = new JValue(20.49);
|
||||
v.Validate(schema);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void UniqueItems_SimpleUnique()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user