From 0418530eb2c365d53627ee037cf7d6c7411afffa Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 25 Dec 2023 16:15:53 +0300 Subject: [PATCH] fixup json Signed-off-by: Vasiliy Tolstov --- go.mod | 11 ++++++++--- go.sum | 22 ++++++++++------------ jsonpb.go | 2 +- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/go.mod b/go.mod index db300a1..28ee2da 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,12 @@ module go.unistack.org/micro-codec-jsonpb/v4 go 1.19 require ( - go.unistack.org/micro-proto/v4 v4.0.0 - go.unistack.org/micro/v4 v4.0.1 - google.golang.org/protobuf v1.28.1 + go.unistack.org/micro-proto/v4 v4.0.1 + go.unistack.org/micro/v4 v4.0.14 + google.golang.org/protobuf v1.32.0 +) + +require ( + github.com/google/go-cmp v0.5.9 // indirect + golang.org/x/exp v0.0.0-20231219180239-dc181d75b848 // indirect ) diff --git a/go.sum b/go.sum index 8870644..afc1b2c 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,10 @@ -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -go.unistack.org/micro-proto/v4 v4.0.0 h1:+TAwKSlx48eLsNO2E2cO0JLE8we1KU2AuWe9Q310FuU= -go.unistack.org/micro-proto/v4 v4.0.0/go.mod h1:ArmK7o+uFvxSY3dbJhKBBX4Pm1rhWdLEFf3LxBrMtec= -go.unistack.org/micro/v4 v4.0.1 h1:xo1IxbVfgh8i0eY0VeYa3cbb13u5n/Mxnp3FOgWD4Jo= -go.unistack.org/micro/v4 v4.0.1/go.mod h1:p/J5UcSJjfHsWGT31uKoghQ5rUQZzQJBAFy+Z4+ZVMs= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +go.unistack.org/micro-proto/v4 v4.0.1 h1:2RKHgtCOOcAFgKsnngGK5bqM/6MWXOjVCdw03dbuoF8= +go.unistack.org/micro-proto/v4 v4.0.1/go.mod h1:ArmK7o+uFvxSY3dbJhKBBX4Pm1rhWdLEFf3LxBrMtec= +go.unistack.org/micro/v4 v4.0.14 h1:zN+aVfTceei3TPzuA7f2wAXLYHoSHWpx2XgW8yqaTIA= +go.unistack.org/micro/v4 v4.0.14/go.mod h1:ZDgU9931vm2l7X6RN/6UuwRIVp24GRdmQ7dKmegArk4= +golang.org/x/exp v0.0.0-20231219180239-dc181d75b848 h1:+iq7lrkxmFNBM7xx+Rae2W6uyPfhPeDWD+n+JgppptE= +golang.org/x/exp v0.0.0-20231219180239-dc181d75b848/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= diff --git a/jsonpb.go b/jsonpb.go index 8a01b3d..aed59ae 100644 --- a/jsonpb.go +++ b/jsonpb.go @@ -15,7 +15,7 @@ var ( DefaultMarshalOptions = jsonpb.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, - UseProtoNames: true, + UseProtoNames: false, AllowPartial: false, }