devongovett / protobuf-jsonschema

Compiles Protobuf IDL to JSON Schema
119 stars 37 forks source link

64 bit proto field should be JSON string type, and not integer #17

Open stealthrabbi opened 2 years ago

stealthrabbi commented 2 years ago

According to the Proto3 JSON spec, 64 bit numbers should be treated as string to avoid data loss.

https://developers.google.com/protocol-buffers/docs/proto3#json