opis / json-schema

JSON Schema validator for PHP
https://opis.io/json-schema
Apache License 2.0
568 stars 58 forks source link

fix(MultipleOf): MultipleOf not working as expected #126

Open MathieM opened 1 year ago

MathieM commented 1 year ago

123

Dealing with float is too complicated. I add some test to help to understand but it's not working well for all cases.

You can find some examples here : https://3v4l.org/FpKHR

nikcani commented 1 year ago

@sorinsarca will this be merged? If yes, when? Thx in advance :)

MathieM commented 1 year ago

better way to implement multipleof : https://3v4l.org/K5D3k I'll implement that and test it.

drzraf commented 1 month ago

Getting rid of bcmath is also a very desirable side-effect