Open
Description
When the Schema Type is Dynamic, after JSON serialization, the float loses precision and becomes an int type value. When storing such a value back into the dynamic database, it causes a type error. How can this issue be resolved?
{"id": 111,"action": "test","user_id": 0,"soc": 1.01,"mileage": 123.02}
{"id": 111,"action": "test","user_id": 0,"soc": 1.0,"mileage": 123.0}
POST /api/v1/ingest HTTP/1.1
HOST : 192.168.33.10:8002
HEADERS:
Authorization: Basic 111111=
Content-Type: application/json
User-Agent: go-resty/2.15.3 (https://github.com/go-resty/resty)
X-P-Stream: test
BODY :
[
{
"id": 111,
"action": "test",
"user_id": 0,
"soc": 1,
"mileage": 123
}
]
------------------------------------------------------------------------------
~~~ RESPONSE ~~~
STATUS : 400 Bad Request
PROTO : HTTP/1.1
....................
BODY :
Invalid Request: Could not process this event due to mismatch in datatype
==============================================================================
sock file [/var/qlog_platform.sock] not found, uds log ignored