You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=>jsonschema.validate(1.11, schema)
Traceback (most recent call last):
File "", line 1, in
File "C:\Python38\lib\site-packages\jsonschema\validators.py", line 934, in validate
raise error
jsonschema.exceptions.ValidationError: 1.11 is not a multiple of 0.01
Observations-
From 1.11 till 1.19 throwing the validation error but from 1.21 No errors work as expected.
Again from 10.11 till 10.21 throwing the validation error but from 10.22 No errors work as expected.
2.11 , 2.13 throwing the validation error
But the other number works fine.
The text was updated successfully, but these errors were encountered:
This is a strange issue. I have created a simple JSON schema to validate float which can be a maximum of two digits.
schema = {'type': 'number', 'multipleOf': 0.01}
jsonschema.validate(1.11, schema)
Observations-
The text was updated successfully, but these errors were encountered: