JSON does not distinguish between long and int types. So in my opinion, it makes no sense to assert on those specific types. Same goes for isDouble() : isDecimal would make more sense.
But it would be a breaking change, so I guess the best is to use satisfies() with a custom condition.
Summary
JSON does not distinguish between long and int types. So in my opinion, it makes no sense to assert on those specific types. Same goes for
isDouble()
:isDecimal
would make more sense.But it would be a breaking change, so I guess the best is to use
satisfies()
with a custom condition.