Skip to content

multipleOf validation is incorrect for large integers #2561

Open

Description

@TomerAberbach

What version of Ajv are you using? Does the issue happen if you use the latest version?

Latest (v8.17.1)

Ajv options object

Any options.

JSON Schema

{ "multipleOf": 1 }

Sample data

1e21

What results did you expect?

1e21 should validate against multipleOf: 1, but it doesn't.

Are you going to resolve the issue?

Yup: #2562

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions