google-protobuf 4.28.3-aarch64-linux → 4.29.0-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 245f23e9891264dcfee9ba1a4f6c0e2c9d3d9d702c1765983338a22c394c21b7
4
- data.tar.gz: 6e66ad1c4680df11165fdaa9110439e65b2c7189ef27f2ff75c2b71ca233ad9f
3
+ metadata.gz: b1173907911c3c1679ddcb394a008a8804d68a78c758524504e3c9225fa0f861
4
+ data.tar.gz: 7872ef2a97badccc8a887f658402c828277b5e05224067c2919859f926798012
5
5
  SHA512:
6
- metadata.gz: 51354aef5203fe534aa82ca6d70a28ae40f43109296e41a367c485c97d738c136ae05023e71db3ce763c17c32ec085045048d657ed8dd01334a1173ad357fbb0
7
- data.tar.gz: 9dee64ff9ab86113dc2554e7b93dcfca99caaea7e112744305c73441d2d13a034e6a09609b069d7ccced3f906d55e584082d3beaa0fa4484ef6ca82ae0c87382
6
+ metadata.gz: 95538ae513f8e389c2ddd2e0d7efd8139407fd49bdec10d7c55f6a3ad99fdd582e4da1f36c3ce2b9f3af9c3bb539427e4d2126fd71119293ce980a565b7d831d
7
+ data.tar.gz: 7bc974e30e5f6b85b9073c39f1c4baf84ee10f42580c4424b9f81c744c01363359c7b7412ee1c44bc9427afbd4b860a6f8a03f399f600196d07ff2610358c3c5
@@ -7,7 +7,6 @@
7
7
 
8
8
  #include <ctype.h>
9
9
  #include <errno.h>
10
- #include <ruby/version.h>
11
10
 
12
11
  #include "convert.h"
13
12
  #include "message.h"
@@ -1038,11 +1038,21 @@ static VALUE Message_decode_json(int argc, VALUE* argv, VALUE klass) {
1038
1038
 
1039
1039
  upb_Status_Clear(&status);
1040
1040
  const upb_DefPool* pool = upb_FileDef_Pool(upb_MessageDef_File(msg->msgdef));
1041
- if (!upb_JsonDecode(RSTRING_PTR(data), RSTRING_LEN(data),
1042
- (upb_Message*)msg->msg, msg->msgdef, pool, options,
1043
- Arena_get(msg->arena), &status)) {
1044
- rb_raise(cParseError, "Error occurred during parsing: %s",
1045
- upb_Status_ErrorMessage(&status));
1041
+
1042
+ int result = upb_JsonDecodeDetectingNonconformance(
1043
+ RSTRING_PTR(data), RSTRING_LEN(data), (upb_Message*)msg->msg,
1044
+ msg->msgdef, pool, options, Arena_get(msg->arena), &status);
1045
+
1046
+ switch (result) {
1047
+ case kUpb_JsonDecodeResult_Ok:
1048
+ break;
1049
+ case kUpb_JsonDecodeResult_OkWithEmptyStringNumerics:
1050
+ rb_warn("%s", upb_Status_ErrorMessage(&status));
1051
+ break;
1052
+ case kUpb_JsonDecodeResult_Error:
1053
+ rb_raise(cParseError, "Error occurred during parsing: %s",
1054
+ upb_Status_ErrorMessage(&status));
1055
+ break;
1046
1056
  }
1047
1057
 
1048
1058
  return msg_rb;
@@ -7,8 +7,6 @@
7
7
 
8
8
  #include "protobuf.h"
9
9
 
10
- #include <ruby/version.h>
11
-
12
10
  #include "defs.h"
13
11
  #include "map.h"
14
12
  #include "message.h"