RicoSuter/NJsonSchema
View on GitHubInvalidCastException on validation of JToken containing BigInteger
Open
#568 opened on Nov 25, 2017
help wantedtype: bug
Repository metrics
- Stars
- (1,578 stars)
- PR merge metrics
- (Avg merge 39d 6h) (1 merged PR in 30d)
Description
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.