Vendor updates

This commit is contained in:
Nicholas Thompson
2024-03-18 21:09:54 +02:00
parent 3702654ec3
commit 4d774937df
37 changed files with 1295 additions and 205 deletions

View File

@@ -17,7 +17,7 @@ import (
// EnforceUTF8 reports whether to enforce strict UTF-8 validation.
func EnforceUTF8(fd protoreflect.FieldDescriptor) bool {
if flags.ProtoLegacy {
if flags.ProtoLegacy || fd.Syntax() == protoreflect.Editions {
if fd, ok := fd.(interface{ EnforceUTF8() bool }); ok {
return fd.EnforceUTF8()
}