Skip to content

False negatives with real values of multipleOf #469

@PeterMead

Description

@PeterMead

I use the multipleOf property to limit numbers to two decimal places. For example:

"turnover": {
"type": "number",
"multipleOf": 0.01
}

When passed a value of 5000000 it fails the constraint and returns an error. That number is valid for the constraint so this is a false negative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions