rbflagr 0.1.2 → 1.1.12

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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +17 -7
  4. data/docs/CreateFlagRequest.md +2 -0
  5. data/docs/CreateTagRequest.md +8 -0
  6. data/docs/Distribution.md +0 -1
  7. data/docs/EvalContext.md +4 -2
  8. data/docs/EvalResult.md +8 -7
  9. data/docs/EvaluationBatchRequest.md +3 -1
  10. data/docs/EvaluationEntity.md +1 -1
  11. data/docs/ExportApi.md +97 -0
  12. data/docs/Flag.md +7 -0
  13. data/docs/FlagApi.md +46 -1
  14. data/docs/Health.md +8 -0
  15. data/docs/HealthApi.md +9 -6
  16. data/docs/PutFlagRequest.md +5 -1
  17. data/docs/PutVariantRequest.md +1 -1
  18. data/docs/Tag.md +9 -0
  19. data/docs/TagApi.md +198 -0
  20. data/lib/rbflagr/api/constraint_api.rb +3 -3
  21. data/lib/rbflagr/api/distribution_api.rb +3 -3
  22. data/lib/rbflagr/api/evaluation_api.rb +3 -3
  23. data/lib/rbflagr/api/export_api.rb +118 -0
  24. data/lib/rbflagr/api/flag_api.rb +56 -3
  25. data/lib/rbflagr/api/health_api.rb +15 -12
  26. data/lib/rbflagr/api/segment_api.rb +3 -3
  27. data/lib/rbflagr/api/tag_api.rb +253 -0
  28. data/lib/rbflagr/api/variant_api.rb +3 -3
  29. data/lib/rbflagr/api_client.rb +8 -6
  30. data/lib/rbflagr/api_error.rb +3 -3
  31. data/lib/rbflagr/configuration.rb +5 -5
  32. data/lib/rbflagr/models/constraint.rb +5 -4
  33. data/lib/rbflagr/models/create_constraint_request.rb +5 -4
  34. data/lib/rbflagr/models/create_flag_request.rb +29 -8
  35. data/lib/rbflagr/models/create_segment_request.rb +5 -4
  36. data/lib/rbflagr/models/create_tag_request.rb +208 -0
  37. data/lib/rbflagr/models/create_variant_request.rb +5 -4
  38. data/lib/rbflagr/models/distribution.rb +6 -29
  39. data/lib/rbflagr/models/error.rb +5 -4
  40. data/lib/rbflagr/models/eval_context.rb +35 -44
  41. data/lib/rbflagr/models/eval_debug_log.rb +5 -4
  42. data/lib/rbflagr/models/eval_result.rb +15 -135
  43. data/lib/rbflagr/models/evaluation_batch_request.rb +34 -13
  44. data/lib/rbflagr/models/evaluation_batch_response.rb +5 -4
  45. data/lib/rbflagr/models/evaluation_entity.rb +5 -28
  46. data/lib/rbflagr/models/flag.rb +92 -8
  47. data/lib/rbflagr/models/flag_snapshot.rb +5 -4
  48. data/lib/rbflagr/models/health.rb +184 -0
  49. data/lib/rbflagr/models/put_distributions_request.rb +5 -4
  50. data/lib/rbflagr/models/put_flag_request.rb +49 -20
  51. data/lib/rbflagr/models/put_segment_reorder_request.rb +5 -4
  52. data/lib/rbflagr/models/put_segment_request.rb +5 -4
  53. data/lib/rbflagr/models/put_variant_request.rb +5 -9
  54. data/lib/rbflagr/models/segment.rb +5 -4
  55. data/lib/rbflagr/models/segment_debug_log.rb +5 -4
  56. data/lib/rbflagr/models/set_flag_enabled_request.rb +5 -4
  57. data/lib/rbflagr/models/tag.rb +232 -0
  58. data/lib/rbflagr/models/variant.rb +5 -4
  59. data/lib/rbflagr/version.rb +4 -4
  60. data/lib/rbflagr.rb +8 -3
  61. data/rbflagr.gemspec +5 -4
  62. data/spec/api/export_api_spec.rb +45 -0
  63. data/spec/api/tag_api_spec.rb +79 -0
  64. data/spec/models/create_tag_request_spec.rb +41 -0
  65. data/spec/models/health_spec.rb +41 -0
  66. data/spec/models/tag_spec.rb +47 -0
  67. data/swagger.yaml +309 -43
  68. data/swagger_ruby.json +1 -1
  69. metadata +72 -32
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.1.12
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -19,18 +19,20 @@ module Flagr
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Check if Flagr is healthy
22
23
  # @param [Hash] opts the optional parameters
23
- # @return [nil]
24
- def health_get(opts = {})
25
- health_get_with_http_info(opts)
26
- nil
24
+ # @return [Health]
25
+ def get_health(opts = {})
26
+ data, _status_code, _headers = get_health_with_http_info(opts)
27
+ data
27
28
  end
28
29
 
30
+ # Check if Flagr is healthy
29
31
  # @param [Hash] opts the optional parameters
30
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
31
- def health_get_with_http_info(opts = {})
32
+ # @return [Array<(Health, Fixnum, Hash)>] Health data, response status code and response headers
33
+ def get_health_with_http_info(opts = {})
32
34
  if @api_client.config.debugging
33
- @api_client.config.logger.debug 'Calling API: HealthApi.health_get ...'
35
+ @api_client.config.logger.debug 'Calling API: HealthApi.get_health ...'
34
36
  end
35
37
  # resource path
36
38
  local_var_path = '/health'
@@ -56,9 +58,10 @@ module Flagr
56
58
  :query_params => query_params,
57
59
  :form_params => form_params,
58
60
  :body => post_body,
59
- :auth_names => auth_names)
61
+ :auth_names => auth_names,
62
+ :return_type => 'Health')
60
63
  if @api_client.config.debugging
61
- @api_client.config.logger.debug "API called: HealthApi#health_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
64
+ @api_client.config.logger.debug "API called: HealthApi#get_health\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
62
65
  end
63
66
  return data, status_code, headers
64
67
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.1.12
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,253 @@
1
+ =begin
2
+ #Flagr
3
+
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
+
6
+ OpenAPI spec version: 1.1.12
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module Flagr
16
+ class TagApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param flag_id numeric ID of the flag
23
+ # @param body create a tag
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [Tag]
26
+ def create_tag(flag_id, body, opts = {})
27
+ data, _status_code, _headers = create_tag_with_http_info(flag_id, body, opts)
28
+ data
29
+ end
30
+
31
+ # @param flag_id numeric ID of the flag
32
+ # @param body create a tag
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers
35
+ def create_tag_with_http_info(flag_id, body, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: TagApi.create_tag ...'
38
+ end
39
+ # verify the required parameter 'flag_id' is set
40
+ if @api_client.config.client_side_validation && flag_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'flag_id' when calling TagApi.create_tag"
42
+ end
43
+ if @api_client.config.client_side_validation && flag_id < 1
44
+ fail ArgumentError, 'invalid value for "flag_id" when calling TagApi.create_tag, must be greater than or equal to 1.'
45
+ end
46
+
47
+ # verify the required parameter 'body' is set
48
+ if @api_client.config.client_side_validation && body.nil?
49
+ fail ArgumentError, "Missing the required parameter 'body' when calling TagApi.create_tag"
50
+ end
51
+ # resource path
52
+ local_var_path = '/flags/{flagID}/tags'.sub('{' + 'flagID' + '}', flag_id.to_s)
53
+
54
+ # query parameters
55
+ query_params = {}
56
+
57
+ # header parameters
58
+ header_params = {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+
64
+ # form parameters
65
+ form_params = {}
66
+
67
+ # http body (model)
68
+ post_body = @api_client.object_to_http_body(body)
69
+ auth_names = []
70
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => 'Tag')
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: TagApi#create_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ # @param flag_id numeric ID of the flag
83
+ # @param tag_id numeric ID of the tag
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [nil]
86
+ def delete_tag(flag_id, tag_id, opts = {})
87
+ delete_tag_with_http_info(flag_id, tag_id, opts)
88
+ nil
89
+ end
90
+
91
+ # @param flag_id numeric ID of the flag
92
+ # @param tag_id numeric ID of the tag
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
95
+ def delete_tag_with_http_info(flag_id, tag_id, opts = {})
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug 'Calling API: TagApi.delete_tag ...'
98
+ end
99
+ # verify the required parameter 'flag_id' is set
100
+ if @api_client.config.client_side_validation && flag_id.nil?
101
+ fail ArgumentError, "Missing the required parameter 'flag_id' when calling TagApi.delete_tag"
102
+ end
103
+ if @api_client.config.client_side_validation && flag_id < 1
104
+ fail ArgumentError, 'invalid value for "flag_id" when calling TagApi.delete_tag, must be greater than or equal to 1.'
105
+ end
106
+
107
+ # verify the required parameter 'tag_id' is set
108
+ if @api_client.config.client_side_validation && tag_id.nil?
109
+ fail ArgumentError, "Missing the required parameter 'tag_id' when calling TagApi.delete_tag"
110
+ end
111
+ if @api_client.config.client_side_validation && tag_id < 1
112
+ fail ArgumentError, 'invalid value for "tag_id" when calling TagApi.delete_tag, must be greater than or equal to 1.'
113
+ end
114
+
115
+ # resource path
116
+ local_var_path = '/flags/{flagID}/tags/{tagID}'.sub('{' + 'flagID' + '}', flag_id.to_s).sub('{' + 'tagID' + '}', tag_id.to_s)
117
+
118
+ # query parameters
119
+ query_params = {}
120
+
121
+ # header parameters
122
+ header_params = {}
123
+ # HTTP header 'Accept' (if needed)
124
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
125
+ # HTTP header 'Content-Type'
126
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
127
+
128
+ # form parameters
129
+ form_params = {}
130
+
131
+ # http body (model)
132
+ post_body = nil
133
+ auth_names = []
134
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
135
+ :header_params => header_params,
136
+ :query_params => query_params,
137
+ :form_params => form_params,
138
+ :body => post_body,
139
+ :auth_names => auth_names)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: TagApi#delete_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [Integer] :limit the numbers of tags to return
147
+ # @option opts [Integer] :offset return tags given the offset, it should usually set together with limit
148
+ # @option opts [String] :value_like return tags partially matching given value
149
+ # @return [Array<Tag>]
150
+ def find_all_tags(opts = {})
151
+ data, _status_code, _headers = find_all_tags_with_http_info(opts)
152
+ data
153
+ end
154
+
155
+ # @param [Hash] opts the optional parameters
156
+ # @option opts [Integer] :limit the numbers of tags to return
157
+ # @option opts [Integer] :offset return tags given the offset, it should usually set together with limit
158
+ # @option opts [String] :value_like return tags partially matching given value
159
+ # @return [Array<(Array<Tag>, Fixnum, Hash)>] Array<Tag> data, response status code and response headers
160
+ def find_all_tags_with_http_info(opts = {})
161
+ if @api_client.config.debugging
162
+ @api_client.config.logger.debug 'Calling API: TagApi.find_all_tags ...'
163
+ end
164
+ # resource path
165
+ local_var_path = '/tags'
166
+
167
+ # query parameters
168
+ query_params = {}
169
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
170
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
171
+ query_params[:'value_like'] = opts[:'value_like'] if !opts[:'value_like'].nil?
172
+
173
+ # header parameters
174
+ header_params = {}
175
+ # HTTP header 'Accept' (if needed)
176
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
+ # HTTP header 'Content-Type'
178
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
179
+
180
+ # form parameters
181
+ form_params = {}
182
+
183
+ # http body (model)
184
+ post_body = nil
185
+ auth_names = []
186
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
187
+ :header_params => header_params,
188
+ :query_params => query_params,
189
+ :form_params => form_params,
190
+ :body => post_body,
191
+ :auth_names => auth_names,
192
+ :return_type => 'Array<Tag>')
193
+ if @api_client.config.debugging
194
+ @api_client.config.logger.debug "API called: TagApi#find_all_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
195
+ end
196
+ return data, status_code, headers
197
+ end
198
+ # @param flag_id numeric ID of the flag
199
+ # @param [Hash] opts the optional parameters
200
+ # @return [Array<Tag>]
201
+ def find_tags(flag_id, opts = {})
202
+ data, _status_code, _headers = find_tags_with_http_info(flag_id, opts)
203
+ data
204
+ end
205
+
206
+ # @param flag_id numeric ID of the flag
207
+ # @param [Hash] opts the optional parameters
208
+ # @return [Array<(Array<Tag>, Fixnum, Hash)>] Array<Tag> data, response status code and response headers
209
+ def find_tags_with_http_info(flag_id, opts = {})
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug 'Calling API: TagApi.find_tags ...'
212
+ end
213
+ # verify the required parameter 'flag_id' is set
214
+ if @api_client.config.client_side_validation && flag_id.nil?
215
+ fail ArgumentError, "Missing the required parameter 'flag_id' when calling TagApi.find_tags"
216
+ end
217
+ if @api_client.config.client_side_validation && flag_id < 1
218
+ fail ArgumentError, 'invalid value for "flag_id" when calling TagApi.find_tags, must be greater than or equal to 1.'
219
+ end
220
+
221
+ # resource path
222
+ local_var_path = '/flags/{flagID}/tags'.sub('{' + 'flagID' + '}', flag_id.to_s)
223
+
224
+ # query parameters
225
+ query_params = {}
226
+
227
+ # header parameters
228
+ header_params = {}
229
+ # HTTP header 'Accept' (if needed)
230
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
231
+ # HTTP header 'Content-Type'
232
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
233
+
234
+ # form parameters
235
+ form_params = {}
236
+
237
+ # http body (model)
238
+ post_body = nil
239
+ auth_names = []
240
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
241
+ :header_params => header_params,
242
+ :query_params => query_params,
243
+ :form_params => form_params,
244
+ :body => post_body,
245
+ :auth_names => auth_names,
246
+ :return_type => 'Array<Tag>')
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug "API called: TagApi#find_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
+ end
250
+ return data, status_code, headers
251
+ end
252
+ end
253
+ end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.1.12
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.1.12
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'json'
15
15
  require 'logger'
16
16
  require 'tempfile'
17
17
  require 'typhoeus'
18
- require 'uri'
18
+ require 'addressable/uri'
19
19
 
20
20
  module Flagr
21
21
  class ApiClient
@@ -63,7 +63,7 @@ module Flagr
63
63
  :message => response.return_message)
64
64
  else
65
65
  fail ApiError.new(:code => response.code,
66
- :response_headers => response.headers,
66
+ :response_headers => response.headers.to_h,
67
67
  :response_body => response.body),
68
68
  response.status_message
69
69
  end
@@ -111,6 +111,8 @@ module Flagr
111
111
  :verbose => @config.debugging
112
112
  }
113
113
 
114
+ req_opts.merge!(multipart: true) if header_params['Content-Type'].start_with? "multipart/"
115
+
114
116
  # set custom cert, if provided
115
117
  req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
116
118
 
@@ -263,7 +265,7 @@ module Flagr
263
265
  def build_request_url(path)
264
266
  # Add leading and trailing slashes to path
265
267
  path = "/#{path}".gsub(/\/+/, '/')
266
- URI.encode(@config.base_url + path)
268
+ Addressable::URI.encode(@config.base_url + path)
267
269
  end
268
270
 
269
271
  # Builds the HTTP request body
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.1.12
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -1,16 +1,16 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.1.12
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'addressable/uri'
14
14
 
15
15
  module Flagr
16
16
  class Configuration
@@ -175,7 +175,7 @@ module Flagr
175
175
 
176
176
  def base_url
177
177
  url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
178
- URI.encode(url)
178
+ Addressable::URI.encode(url)
179
179
  end
180
180
 
181
181
  # Gets API key (with prefix if set).
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.1.12
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -217,7 +217,7 @@ module Flagr
217
217
  return nil unless attributes.is_a?(Hash)
218
218
  self.class.swagger_types.each_pair do |key, type|
219
219
  if type =~ /\AArray<(.*)>/i
220
- # check to ensure the input is an array given that the the attribute
220
+ # check to ensure the input is an array given that the attribute
221
221
  # is documented as an array but the input is not
222
222
  if attributes[self.class.attribute_map[key]].is_a?(Array)
223
223
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -313,5 +313,6 @@ module Flagr
313
313
  value
314
314
  end
315
315
  end
316
+
316
317
  end
317
318
  end