RicoSuter/NJsonSchema
InvalidCastException on validation of JToken containing BigInteger
オープン
#568 opened on 2017/11/25
help wantedtype: bug
Repository metrics
- Stars
- (1,581 個のスター)
- PR merge metrics
- (平均マージ 39d 6h) (30d で 1 merged 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.