ga4gh / ga4gh-schemas

Models and APIs for Genomic data. RETIRED 2018-01-24
http://ga4gh.org
Apache License 2.0
214 stars 114 forks source link

Update serialization example to discuss stringified numbers #747

Open david4096 opened 7 years ago

david4096 commented 7 years ago

When serializing long protocol buffers wraps numbers in strings so they can be properly handled by JavaScript, which cannot always handle arbitrary precision arithmetic. This issue will close with some discussion of how long values will be serialized as strings, and why.

https://ga4gh-schemas.readthedocs.io/en/latest/appendix/json_intro.html

See https://github.com/ga4gh/server/issues/1478