apimatic_core 0.3.3 → 0.3.4

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: a61392d70a018d23e1947a9886c574b0cd341e04d99ee7e1ad18b1c10f3ef22e
4
- data.tar.gz: 9b8f29acf6e4d9703912d9b9d1a5acf774625b26d6a36dc3c693518d2f02e274
3
+ metadata.gz: f03128e2b836d53e911610d9765b660007e9275c08022c55850cc5449813b817
4
+ data.tar.gz: 9ac3f6bd7f83457e2b81c6d413296705b09f751da199f974df8b752fac374b6f
5
5
  SHA512:
6
- metadata.gz: 00d16ad4522a07c009dbec86a53fb7310a2c2bc339a9403fd091da9f6ce7f43feace0dfb0e377ed9a9fc29ef144dc1b0e0a6df864fd431c2d82192c21bd8dec6
7
- data.tar.gz: 6a2bee74082d6db01b028ee6a4265e7534c29b68848b847964a27277bfe3f7121f5478d694375a3ccfa47c7ad0e7c72dca317a23568df1606198aed68543733a
6
+ metadata.gz: d0fdc305da1030ad466f0790e6c5ed52061f7a56ab197841542c7f0d219885990ff6c70dd429ab3a07b6ff32b7cdebfa03687d4988848ff07ca8dc824ab95311
7
+ data.tar.gz: 2a21f5d179433a0f23bf45cdb271f249caab25ce2fe7b9a7066fc84681207d97dc59eea206d2575f399fea8686aca668de6ed8e69632a1efadddf83dbae1eba9
@@ -68,7 +68,13 @@ module CoreLibrary
68
68
  error_message_template)
69
69
 
70
70
  # Handling response body placeholder
71
- response_payload = ApiHelper.json_deserialize(response.raw_body, true)
71
+ begin
72
+ response_payload = ApiHelper.json_deserialize(response.raw_body, true) unless response.raw_body.nil?
73
+ rescue TypeError
74
+ # This statement execution means the received response body is not a JSON but a simple string
75
+ response_payload = response.raw_body
76
+ end
77
+
72
78
  error_message_template = ApiHelper.resolve_template_placeholders_using_json_pointer(body_placeholders,
73
79
  response_payload,
74
80
  error_message_template)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apimatic_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIMatic Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces