|
|
|
@ -12,11 +12,11 @@ import ( |
|
|
|
|
"google.golang.org/protobuf/encoding/protojson" |
|
|
|
|
"google.golang.org/protobuf/types/known/structpb" |
|
|
|
|
|
|
|
|
|
"google.golang.org/genproto/protobuf/field_mask" |
|
|
|
|
"google.golang.org/protobuf/proto" |
|
|
|
|
"google.golang.org/protobuf/reflect/protoreflect" |
|
|
|
|
"google.golang.org/protobuf/reflect/protoregistry" |
|
|
|
|
"google.golang.org/protobuf/types/known/durationpb" |
|
|
|
|
"google.golang.org/protobuf/types/known/fieldmaskpb" |
|
|
|
|
"google.golang.org/protobuf/types/known/timestamppb" |
|
|
|
|
"google.golang.org/protobuf/types/known/wrapperspb" |
|
|
|
|
) |
|
|
|
@ -289,7 +289,7 @@ func parseMessage(md protoreflect.MessageDescriptor, value string) (protoreflect |
|
|
|
|
} |
|
|
|
|
msg = wrapperspb.Bytes(v) |
|
|
|
|
case "google.protobuf.FieldMask": |
|
|
|
|
fm := &field_mask.FieldMask{} |
|
|
|
|
fm := &fieldmaskpb.FieldMask{} |
|
|
|
|
for _, fv := range strings.Split(value, ",") { |
|
|
|
|
fm.Paths = append(fm.Paths, jsonSnakeCase(fv)) |
|
|
|
|
} |
|
|
|
|