Skip to content

600.03 is not a multiple of 0.01 #679

@ra-coder

Description

@ra-coder
>>> jsonschema.validate(600.03, {'$schema': 'http://json-schema.org/draft-07/schema#', 'type': 'number', 'multipleOf': 0.01})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/dist-packages/jsonschema/validators.py", line 934, in validate
    raise error
jsonschema.exceptions.ValidationError: 600.03 is not a multiple of 0.01

Failed validating 'multipleOf' in schema:
    {'$schema': 'http://json-schema.org/draft-07/schema#',
     'multipleOf': 0.01,
     'type': 'number'}

On instance:
    600.03
>>> jsonschema.__version__
'3.2.0'


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