You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a proto with a google.protobuf.Timestamp field with the name date.
When calling TextFormatter I get the following text:
date {
"2020-12-04T12:40:43.910002200Z"
}
I get an exception when I try to parse this text again into the proto: Expected string value for Timestamp.
It expects the following format:
date: "2020-12-04T12:40:43.910002200Z"
Parsing the textproto file worked after manually changing it.
I suggest to update the formatter and not the parser. The currently produced text is weird, because the braces indicate a complex type, but then they only contain a single value without a name.
The text was updated successfully, but these errors were encountered:
I have a proto with a
google.protobuf.Timestamp
field with the namedate
.When calling TextFormatter I get the following text:
I get an exception when I try to parse this text again into the proto:
Expected string value for Timestamp
.It expects the following format:
Parsing the textproto file worked after manually changing it.
I suggest to update the formatter and not the parser. The currently produced text is weird, because the braces indicate a complex type, but then they only contain a single value without a name.
The text was updated successfully, but these errors were encountered: