mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
json: uses proto field name instead of lowerCamelCase name (#985)
This commit is contained in:
parent
bef6d8d818
commit
c547c61f89
@ -16,6 +16,7 @@ var (
|
||||
// MarshalOptions is a configurable JSON format marshaler.
|
||||
MarshalOptions = protojson.MarshalOptions{
|
||||
EmitUnpopulated: true,
|
||||
UseProtoNames: true,
|
||||
}
|
||||
// UnmarshalOptions is a configurable JSON format parser.
|
||||
UnmarshalOptions = protojson.UnmarshalOptions{
|
||||
|
Loading…
x
Reference in New Issue
Block a user