Skip to content

Commit 64bb84d

Browse files
algolia-botmillotp
andcommitted
fix(specs): make the updateAt non-null in ingestion (generated)
algolia/api-clients-automation#4697 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 73c066d commit 64bb84d

File tree

7 files changed

+14
-2
lines changed

7 files changed

+14
-2
lines changed

lib/algolia/models/ingestion/authentication.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def initialize(attributes = {})
131131

132132
if attributes.key?(:updated_at)
133133
self.updated_at = attributes[:updated_at]
134+
else
135+
self.updated_at = nil
134136
end
135137
end
136138

lib/algolia/models/ingestion/destination.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def initialize(attributes = {})
131131

132132
if attributes.key?(:updated_at)
133133
self.updated_at = attributes[:updated_at]
134+
else
135+
self.updated_at = nil
134136
end
135137

136138
if attributes.key?(:authentication_id)

lib/algolia/models/ingestion/source.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def initialize(attributes = {})
124124

125125
if attributes.key?(:updated_at)
126126
self.updated_at = attributes[:updated_at]
127+
else
128+
self.updated_at = nil
127129
end
128130
end
129131

lib/algolia/models/ingestion/task.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ def initialize(attributes = {})
205205

206206
if attributes.key?(:updated_at)
207207
self.updated_at = attributes[:updated_at]
208+
else
209+
self.updated_at = nil
208210
end
209211
end
210212

lib/algolia/models/ingestion/task_v1.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ def initialize(attributes = {})
170170

171171
if attributes.key?(:updated_at)
172172
self.updated_at = attributes[:updated_at]
173+
else
174+
self.updated_at = nil
173175
end
174176
end
175177

lib/algolia/models/ingestion/transformation.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def initialize(attributes = {})
132132

133133
if attributes.key?(:updated_at)
134134
self.updated_at = attributes[:updated_at]
135+
else
136+
self.updated_at = nil
135137
end
136138
end
137139

lib/algolia/models/ingestion/transformation_try_response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
module Algolia
99
module Ingestion
1010
class TransformationTryResponse
11-
# The array of records returned by the transformation service.
11+
# The array of stringified records returned by the transformation service.
1212
attr_accessor :payloads
1313

1414
attr_accessor :error
@@ -24,7 +24,7 @@ def self.attribute_map
2424
# Attribute type mapping.
2525
def self.types_mapping
2626
{
27-
:payloads => :"Array<Object>",
27+
:payloads => :"Array<String>",
2828
:error => :"TransformationError"
2929
}
3030
end

0 commit comments

Comments
 (0)