Handling double numerical values into the database
Summary
There is a discrepancy between the double number stored in the database and the one returned in the JSON
Description
When adding a double number on a logistics object, the number is stored as transmitted in the database. However on a GET, the number format is changed causing issue for patching the number.
Steps to Reproduce (for bugs)
- Create a logistics object with a double number = 1.1.
- Get the logistics object
- Create a patch with the double number returned from the get
Possible Solution
- Sanitize the value before storing it in the database
- or return the value that has been stored in the databse without changing the format
The value from the GET should reflect exactly what is present in the database otherwise the PATCH will fail to find the correct triplet.