jamesbrucepower/node-avro-io

Error serialising/deserialising long

Closed this issue · 1 comments

Hello,

I have the following schema:

Given:

{
  "type": "record",
  "name": "Message",
  "fields": [
    {"name": "id", "type": "long"}
  ]
}

When I serialise:

{
    id: 4294967296
}

Then after serialisation:

id = 0

Should be:

id = 4294967296

Would be great if you could have a look at this issue:

Thanks

👍 +1