microsoft_kiota_serialization_json 0.25.1 → 0.25.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccdf71656e2a552c9a38cb81074b9d818ddb5933df339b0bc37ffd710f4f60ed
|
|
4
|
+
data.tar.gz: b4d36f53067177c40c682353671152eeaf1b387f89201e86993aa8af5665f2df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3cc46ec2bc7b54e46581b2ee23e7e8e9c3e66264232725027fd64af0b316a9c5127338bd0d314d4e591edf94837bf50797fb6d856474ee5a3c9522ac950755a
|
|
7
|
+
data.tar.gz: 89e151a1e0a469a01f44e0852d392b7c30b5cf1d3776c076209c8aaedc680389e6158f783566bae9f82bc0f45871ab87e9799e1dee8c5e30b76acfbe428811ae
|
|
@@ -12,12 +12,9 @@ module MicrosoftKiotaSerializationJson
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def get_parse_node(content_type, content)
|
|
15
|
-
if
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
raise StandardError, `expected a #{get_valid_content_type} content type`
|
|
19
|
-
end
|
|
20
|
-
raise StandardError, 'content cannot be undefined or empty' unless content
|
|
15
|
+
raise ArgumentError, 'content type cannot be undefined or empty' if content_type.nil? || content_type.empty?
|
|
16
|
+
raise ArgumentError, "expected a #{get_valid_content_type} content type" unless get_valid_content_type.casecmp?(content_type)
|
|
17
|
+
raise ArgumentError, 'content cannot be undefined or empty' if content.nil?
|
|
21
18
|
|
|
22
19
|
JsonParseNode.new(JSON.parse(content))
|
|
23
20
|
end
|
|
@@ -11,11 +11,8 @@ module MicrosoftKiotaSerializationJson
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def get_serialization_writer(content_type)
|
|
14
|
-
if
|
|
15
|
-
|
|
16
|
-
elsif get_valid_content_type != content_type
|
|
17
|
-
raise StandardError, `expected a #{get_valid_content_type} content type`
|
|
18
|
-
end
|
|
14
|
+
raise ArgumentError, 'content type cannot be undefined or empty' if content_type.nil? || content_type.empty?
|
|
15
|
+
raise ArgumentError, "expected a #{get_valid_content_type} content type" unless get_valid_content_type.casecmp?(content_type)
|
|
19
16
|
|
|
20
17
|
JsonSerializationWriter.new
|
|
21
18
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: microsoft_kiota_serialization_json
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.25.
|
|
4
|
+
version: 0.25.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Microsoft Corporation
|
|
@@ -35,14 +35,14 @@ dependencies:
|
|
|
35
35
|
requirements:
|
|
36
36
|
- - '='
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: 0.25.
|
|
38
|
+
version: 0.25.2
|
|
39
39
|
type: :runtime
|
|
40
40
|
prerelease: false
|
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
42
42
|
requirements:
|
|
43
43
|
- - '='
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.25.
|
|
45
|
+
version: 0.25.2
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: uuidtools
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|