File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
lib/datadog_api_client/v2 Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 44 "spec_versions": {
55 "v1": {
66 "apigentools_version": "1.6.6",
7- "regenerated": "2025-04-17 13:26:11.488046 ",
8- "spec_repo_commit": "12ab5180 "
7+ "regenerated": "2025-04-18 17:16:54.311712 ",
8+ "spec_repo_commit": "f61db794 "
99 },
1010 "v2": {
1111 "apigentools_version": "1.6.6",
12- "regenerated": "2025-04-17 13:26:11.504561 ",
13- "spec_repo_commit": "12ab5180 "
12+ "regenerated": "2025-04-18 17:16:54.331480 ",
13+ "spec_repo_commit": "f61db794 "
1414 }
1515 }
1616}
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def _deserialize(type, value)
124124 # generic array, return directly
125125 value
126126 when :UUID
127- value
127+ value . to_s
128128 when /\A Array<(?<inner_type>.+)>\z /
129129 inner_type = Regexp . last_match [ :inner_type ]
130130 value . map { |v | _deserialize ( inner_type , v ) }
@@ -255,9 +255,7 @@ def find_and_cast_into_type(klass, data)
255255 when 'Object' # "type: object"
256256 return data if data . instance_of? ( Hash )
257257 when 'UUID'
258- raise TypeError , "Expected String, got #{ uuid_string . class . name } instead." unless uuid_string . kind_of? ( String )
259- raise ArgumentError , "Invalid UUID format." unless /\A \h {8}-\h {4}-\h {4}-\h {4}-\h {12}\z / . match? ( data )
260- return data
258+ return UUIDTools ::UUID . parse ( data )
261259 when /\A Array<(?<sub_type>.+)>\z / # "type: array"
262260 if data . instance_of? ( Array )
263261 sub_type = Regexp . last_match [ :sub_type ]
You can’t perform that action at this time.
0 commit comments