microsoft_kiota_abstractions 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/lib/microsoft_kiota_abstractions/api_error.rb +9 -0
- data/lib/microsoft_kiota_abstractions/http_method.rb +2 -1
- data/lib/microsoft_kiota_abstractions/serialization/parse_node_helper.rb +9 -1
- data/lib/microsoft_kiota_abstractions/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec82d13c67d7a99abb8072fc1bfb3e1b7926ae95462caca4f9260993e09583bb
|
|
4
|
+
data.tar.gz: 910a8c047e114d477144c8769f27efe623a56486800422811cb772b612680ffd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca47b5b57ae1e5df01a5921f36d85f231ca34d23365f91e0c7c785617e8b82017559e5e2f3bdae5558f19a8c428fe91b9b2e7c71c3e9c9b2a767d50f43d1516b
|
|
7
|
+
data.tar.gz: 2d3485190a43513db40db1e6f0022982076552d5eb2162a7580c9f6551314feecc532ab20a1cd0aeef35c918d7f539df3b64e7517518188508d4343c38630904
|
data/Gemfile
CHANGED
|
@@ -5,6 +5,15 @@ module MicrosoftKiotaAbstractions
|
|
|
5
5
|
class ApiError < StandardError
|
|
6
6
|
include MicrosoftKiotaAbstractions::Parsable
|
|
7
7
|
|
|
8
|
+
# the status code and headers of the response the error was raised for
|
|
9
|
+
attr_accessor :response_status_code, :response_headers
|
|
10
|
+
|
|
11
|
+
def initialize(message = nil, response_status_code: nil, response_headers: nil)
|
|
12
|
+
super(message)
|
|
13
|
+
@response_status_code = response_status_code
|
|
14
|
+
@response_headers = response_headers
|
|
15
|
+
end
|
|
16
|
+
|
|
8
17
|
##
|
|
9
18
|
## The deserialization information for the current model
|
|
10
19
|
## @return a i_dictionary
|
|
@@ -5,7 +5,15 @@ module MicrosoftKiotaAbstractions
|
|
|
5
5
|
def self.merge_deserializers_for_intersection_wrapper(*targets)
|
|
6
6
|
result = {}
|
|
7
7
|
targets.each do |target|
|
|
8
|
-
|
|
8
|
+
next if target.nil?
|
|
9
|
+
|
|
10
|
+
# a field that several targets declare belongs to each of them
|
|
11
|
+
result.merge!(target.get_field_deserializers) do |_, earlier, later|
|
|
12
|
+
lambda do |node|
|
|
13
|
+
earlier.call(node)
|
|
14
|
+
later.call(node)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
9
17
|
end
|
|
10
18
|
result
|
|
11
19
|
end
|