webcompere / model-assert

Assertions for data models
MIT License
28 stars 3 forks source link

Merge isLong() and isInteger() #47

Open lmartelli opened 8 months ago

lmartelli commented 8 months ago

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.