Skip to content

Validating against multipleOf: 0 throws java.lang.ArithmeticException #426

@arielmirra

Description

@arielmirra

schema:
{"type": "number", "multipleOf" : 0}

payload:

  • Any number other than 0 it throws java.lang.ArithmeticException: Division by zero
  • Zero throws java.lang.ArithmeticException: Division undefined

Is this the expected behavior? Or are they corner cases that are not being handled?

Thanks!

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