Closed andrei-arobs closed 1 year ago
:wave: unsolicited PR incoming...
We figured out that in some cases the compiled schema drops the floating point because of the json_encode.
{ "name": "score", "type": "double", "default": 0.0, }
{"name":"score","type":"double","default":0}
Adding JSON_PRESERVE_ZERO_FRACTION to json_encode fixes the issue. Would love to hear some feedback if you think this is ok.
Thx @andrei-arobs :tada:
:wave: unsolicited PR incoming...
We figured out that in some cases the compiled schema drops the floating point because of the json_encode.
{"name":"score","type":"double","default":0}
Adding JSON_PRESERVE_ZERO_FRACTION to json_encode fixes the issue. Would love to hear some feedback if you think this is ok.