You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have a type with an ocaml representation of int64, it doesn't get serialized in the same way as it would in ocaml atdgen-runtime.
ex:
typeint64 = int<ocaml repr="int64">
In this example, the value would be returned from the ocaml side as an int in the json response, and the atdgen-codec-runtime would complain that it can't parse that value as it's expecting a string.
Int64 serialization functions:
ocaml atdgen-runtime:
letwrite_int64obx=Bi_outbuf.add_string ob (Int64.to_string x)
bs-atdgen-codec-runtime:
letint64s=string (Int64.to_string s)
The text was updated successfully, but these errors were encountered:
When we have a type with an ocaml representation of
int64
, it doesn't get serialized in the same way as it would in ocaml atdgen-runtime.ex:
In this example, the value would be returned from the ocaml side as an
int
in the json response, and the atdgen-codec-runtime would complain that it can't parse that value as it's expecting a string.Int64 serialization functions:
ocaml atdgen-runtime:
bs-atdgen-codec-runtime:
The text was updated successfully, but these errors were encountered: