-Fixed JsonValidatingReader.ReadAsBytes throwing exception

-Minor NuGet spec updates
This commit is contained in:
JamesNK
2012-02-11 07:00:18 +00:00
parent 2dd26baa77
commit 7b908df64d
3 changed files with 78 additions and 5 deletions
+2 -2
View File
@@ -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();