Constraints for integer and number fields were not being checked properly
As the implementation of number field and integer field both use BigNumber and BigInteger which inherit from Number not Integer checking "instanceof Integer" would never be true causing constraint validation to always pass for these fields.
Updated unit tests to use the correct data type.
Also added year constraint check as it was not present.
Please preserve this line to notify @iSnow (lead of this repository)
Constraints for integer and number fields were not being checked properly
As the implementation of number field and integer field both use BigNumber and BigInteger which inherit from Number not Integer checking "instanceof Integer" would never be true causing constraint validation to always pass for these fields.
Updated unit tests to use the correct data type.
Also added year constraint check as it was not present.
Please preserve this line to notify @iSnow (lead of this repository)