ajsf icon indicating copy to clipboard operation
ajsf copied to clipboard

multipleOf validator uses default remainder operator to validate which results in incorrect result

Open pokermanx opened this issue 2 years ago • 0 comments

Describe the bug which template:

[X] AJSF Core

To Reproduce

Have a multipleOf validator in your schema that is, say, equals to 0.01. Input and validate values like 0.05, 0.06, 0.07

Expected behavior

Not error out on valid input.

  • Browser Chrome
  • Version 0.8.0

Possible Implementation Multiply both parts till they are not decimals and then do the remainder and zero comparison

pokermanx avatar Feb 16 '23 17:02 pokermanx