Skip to content

Commit be0335d

Browse files
Auto-generate files after cl/908697453
1 parent 0488596 commit be0335d

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

php/ext/google/protobuf/php-upb.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6727,10 +6727,17 @@ static void jsonenc_fieldpath(jsonenc* e, upb_StringView path) {
67276727
char ch = *ptr;
67286728

67296729
if (ch >= 'A' && ch <= 'Z') {
6730-
jsonenc_err(e, "Field mask element may not have upper-case letter.");
6730+
jsonenc_err(e,
6731+
"Field mask path containing an uppercase letter cannot be "
6732+
"successfully round tripped through JSON format. See "
6733+
"https://github.com/protocolbuffers/protobuf/issues/25786");
67316734
} else if (ch == '_') {
67326735
if (ptr == end - 1 || *(ptr + 1) < 'a' || *(ptr + 1) > 'z') {
6733-
jsonenc_err(e, "Underscore must be followed by a lowercase letter.");
6736+
jsonenc_err(e,
6737+
"Underscore in FieldMask path must be followed by a "
6738+
"lowercase letter to successfully round trip through JSON "
6739+
"format. See "
6740+
"https://github.com/protocolbuffers/protobuf/issues/25786");
67346741
}
67356742
ch = *++ptr - 32;
67366743
}

ruby/ext/google/protobuf_c/ruby-upb.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5546,10 +5546,17 @@ static void jsonenc_fieldpath(jsonenc* e, upb_StringView path) {
55465546
char ch = *ptr;
55475547

55485548
if (ch >= 'A' && ch <= 'Z') {
5549-
jsonenc_err(e, "Field mask element may not have upper-case letter.");
5549+
jsonenc_err(e,
5550+
"Field mask path containing an uppercase letter cannot be "
5551+
"successfully round tripped through JSON format. See "
5552+
"https://github.com/protocolbuffers/protobuf/issues/25786");
55505553
} else if (ch == '_') {
55515554
if (ptr == end - 1 || *(ptr + 1) < 'a' || *(ptr + 1) > 'z') {
5552-
jsonenc_err(e, "Underscore must be followed by a lowercase letter.");
5555+
jsonenc_err(e,
5556+
"Underscore in FieldMask path must be followed by a "
5557+
"lowercase letter to successfully round trip through JSON "
5558+
"format. See "
5559+
"https://github.com/protocolbuffers/protobuf/issues/25786");
55535560
}
55545561
ch = *++ptr - 32;
55555562
}

0 commit comments

Comments
 (0)