vtprotobuf
vtprotobuf copied to clipboard
Add string utf-8 validation
closes #146
Adding string utf-8 validation. This change makes vtprotobuf to align the other protobuf implementations.(e.g. protobuf-go, protobuf-cpp, etc)
If we did introduce this, it would have to be done as a flag to opt into this behavior since it's a breaking change. Even tho it's more correct, people (including us unfortunately) depend on this incorrect behavior. This originally came from the gogoproto implementation which also did not validate for UTF-8 strings.
But as is, this absolutely would break Vitess.
Thank you for the review!
I added generator option to keep the current behavior.
@mattrobenolt I'm sorry to bother you, but could you please review it again?
@mattrobenolt I'm sorry to bother you again, but could you please review it again?
@mattrobenolt @vmg I'm sorry to bother you again, but could you please review it again?