-Fixed JsonValidatingReader.ReadAsBytes throwing exception
-Minor NuGet spec updates
This commit is contained in:
@@ -423,8 +423,6 @@ namespace Newtonsoft.Json
|
||||
_model = builder.Build(_schema);
|
||||
}
|
||||
|
||||
//ValidateValueToken();
|
||||
|
||||
switch (_reader.TokenType)
|
||||
{
|
||||
case JsonToken.StartObject:
|
||||
@@ -503,6 +501,8 @@ namespace Newtonsoft.Json
|
||||
Pop();
|
||||
break;
|
||||
case JsonToken.Date:
|
||||
case JsonToken.Bytes:
|
||||
// these have no equivalent in JSON schema
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
|
||||
Reference in New Issue
Block a user