mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
json: uses proto field name instead of lowerCamelCase name (#985)
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user