Skip to content

Conversation

@TomerAberbach
Copy link

@TomerAberbach TomerAberbach commented Sep 9, 2025

What issue does this pull request resolve?

#2561

What changes did you make?

I modified the multipleOf to be correct and added a test.

Is there anything that requires more attention while reviewing?

As far as I can tell the issue has always been there (since this commit)

Using res !== parseInt(res) to check where res is a decimal number is not reliable because large numbers like 1e21 stringify to "1e21" and parseInt("1e21") is just 1...

bavulapati added a commit to bavulapati/ajv-plus that referenced this pull request Oct 15, 2025
from ajv-validator#2562

Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
bavulapati added a commit to theflashlabs/ajv-plus that referenced this pull request Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant