elifTech / cpd-ocpp

Open Charge Point Protocol
https://www.eliftech.com/blog/48-a-diy-charging-point-for-an-electric-car-perspective-protocol-and-prototype
MIT License
64 stars 49 forks source link

Fix multipleOf joi (issue #12) #15

Open CrossPT opened 2 years ago

CrossPT commented 2 years ago

This fixes issue #12 , since JOI as a multiple validator. The usage of multipleOf is incorrect and the validator compares for equality (need to set values = 0.1 in order for validator to pass)