Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Go] Write required string fields into the buffer when using Object API
In C++, CreateX allows to write the default "" value of a required string, when the string is not explicitly set. Object API Pack method uses this implementation of CreateX. However, in go, despite whether the field is optional or required, it is always checked against empty string allowing to create messages that fail to pass the verifier. This commits partially reverts google#7719 when the string field is required.
- Loading branch information