protoc-gen-typescript-http icon indicating copy to clipboard operation
protoc-gen-typescript-http copied to clipboard

[Bug] When using uint64 or fixed64 types, string should be generated instead of number

Open shuqingzai opened this issue 2 years ago • 1 comments

See: https://protobuf.dev/programming-guides/proto3/#json

image

syntax = "proto3";

import "google/api/field_behavior.proto";

message Reply {
    fixed64 id = 1 [
        (google.api.field_behavior) = REQUIRED
    ];  
   uint64 userId = 2 [
        (google.api.field_behavior) = REQUIRED
    ];  
}

shuqingzai avatar Feb 13 '23 06:02 shuqingzai

This sounds great, PRs welcome!

ericwenn avatar Mar 14 '23 09:03 ericwenn