RicoSuter/NJsonSchema

InvalidCastException on validation of JToken containing BigInteger

开放

#568 创建于 2017年11月25日

 (11 条评论) (0 个反应) (0 位负责人)C# (549 个派生)github user discovery
help wantedtype: bug

仓库指标

星标
 (1,581 个星标)
PR 合并指标
 (平均合并 39天 6小时) (30 天内合并 1 个 PR)

描述

Validation of JToken containing System.Numeric.BigInteger leads to InvalidCastException with message: "Object must implement IConvertible.". Exception is thrown on line 289 of JsonSchemaValidator(var value = token.Value();) in method "ValidateNumber".

That's a bug because instead of receiveng error you need to handle this exception in your code.

贡献者指南