Is your feature request related to a problem? Please describe.
DecimalNode might contain a valid integer or long, however DecimalNode.isIntegralNumber doesn't cover such cases and return false from parent JsonNode.isIntegralNumber .
Describe the solution you'd like
Implement DecimalNode.isIntegralNumber to return true if the value can fit into Long or Int
Usage example
DecimalNode.isIntegralNumber(-1) == true
Additional context
I want to use this check during json schema validation so that e.g. a DecimalNode containing an integer smaller than maximum long value can be considered as integer during type validation where schema has integer as type of the property
Is your feature request related to a problem? Please describe.
DecimalNode might contain a valid integer or long, however
DecimalNode.isIntegralNumberdoesn't cover such cases and return false from parentJsonNode.isIntegralNumber.Describe the solution you'd like
Implement
DecimalNode.isIntegralNumberto return true if the value can fit into Long or IntUsage example
DecimalNode.isIntegralNumber(-1) == true
Additional context
I want to use this check during json schema validation so that e.g. a DecimalNode containing an integer smaller than maximum long value can be considered as integer during type validation where schema has
integeras type of the property