happyco_json 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (272) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -0
  3. data/README.md +20 -12
  4. data/docs/AssetServiceApi.md +45 -0
  5. data/docs/ReportServiceApi.md +54 -0
  6. data/docs/ReportsCreatedEventReportCreated.md +9 -0
  7. data/docs/V1AddAssetPhotoRequest.md +12 -0
  8. data/docs/V1AddAssetPhotoResponse.md +8 -0
  9. data/docs/V1Asset.md +1 -0
  10. data/docs/V1Date.md +10 -0
  11. data/docs/V1Inspection.md +1 -0
  12. data/docs/V1InspectionData.md +1 -1
  13. data/docs/V1ListInspectionsRequest.md +2 -0
  14. data/docs/V1ListReportsRequest.md +14 -0
  15. data/docs/V1ListReportsResponse.md +10 -0
  16. data/docs/V1RatingGroup.md +12 -0
  17. data/docs/V1Report.md +22 -0
  18. data/docs/V1ReportsCreatedEvent.md +9 -0
  19. data/docs/{V1EventHandlerOptions.md → V1ReportsCreatedEventAckResponse.md} +1 -2
  20. data/docs/V1Signatory.md +12 -0
  21. data/docs/V1Template.md +1 -1
  22. data/git_push.sh +12 -0
  23. data/happyco_json.gemspec +14 -4
  24. data/lib/happyco_json/api/account_provisioning_service_api.rb +25 -5
  25. data/lib/happyco_json/api/account_service_api.rb +25 -5
  26. data/lib/happyco_json/api/account_users_service_api.rb +37 -9
  27. data/lib/happyco_json/api/asset_service_api.rb +100 -11
  28. data/lib/happyco_json/api/folder_service_api.rb +37 -9
  29. data/lib/happyco_json/api/inspection_service_api.rb +55 -15
  30. data/lib/happyco_json/api/report_service_api.rb +91 -0
  31. data/lib/happyco_json/api/template_service_api.rb +43 -11
  32. data/lib/happyco_json/api_client.rb +20 -17
  33. data/lib/happyco_json/api_error.rb +18 -8
  34. data/lib/happyco_json/configuration.rb +13 -1
  35. data/lib/happyco_json/helpers.rb +7 -4
  36. data/lib/happyco_json/models/create_accounts_request_account_with_admin.rb +16 -4
  37. data/lib/happyco_json/models/create_accounts_response_account_id_with_admin_id.rb +16 -4
  38. data/lib/happyco_json/models/inspection_status_change_status.rb +13 -1
  39. data/lib/happyco_json/models/inspection_status_changes_event_inspection_status_change.rb +16 -4
  40. data/lib/happyco_json/models/{v1_event_ack.rb → reports_created_event_report_created.rb} +30 -29
  41. data/lib/happyco_json/models/update_accounts_request_account_with_admin_id.rb +16 -4
  42. data/lib/happyco_json/models/v1_account.rb +16 -4
  43. data/lib/happyco_json/models/v1_add_asset_photo_request.rb +237 -0
  44. data/lib/happyco_json/models/{v1_inspection_status_changes_event_ack.rb → v1_add_asset_photo_response.rb} +25 -14
  45. data/lib/happyco_json/models/v1_add_inspection_photo_request.rb +16 -4
  46. data/lib/happyco_json/models/v1_add_inspection_photo_response.rb +16 -4
  47. data/lib/happyco_json/models/v1_add_inspection_photos_request.rb +16 -4
  48. data/lib/happyco_json/models/v1_add_inspection_photos_response.rb +16 -4
  49. data/lib/happyco_json/models/v1_add_users_request.rb +16 -4
  50. data/lib/happyco_json/models/v1_add_users_response.rb +16 -4
  51. data/lib/happyco_json/models/v1_asset.rb +29 -8
  52. data/lib/happyco_json/models/v1_create_accounts_request.rb +16 -4
  53. data/lib/happyco_json/models/v1_create_accounts_response.rb +16 -4
  54. data/lib/happyco_json/models/v1_create_assets_request.rb +16 -4
  55. data/lib/happyco_json/models/v1_create_assets_response.rb +16 -4
  56. data/lib/happyco_json/models/v1_create_delegated_inspection_link_request.rb +16 -4
  57. data/lib/happyco_json/models/v1_create_delegated_inspection_link_response.rb +16 -4
  58. data/lib/happyco_json/models/v1_create_delegated_inspection_links_request.rb +16 -4
  59. data/lib/happyco_json/models/v1_create_delegated_inspection_links_response.rb +16 -4
  60. data/lib/happyco_json/models/v1_create_folders_request.rb +16 -4
  61. data/lib/happyco_json/models/v1_create_folders_response.rb +16 -4
  62. data/lib/happyco_json/models/v1_create_inspections_request.rb +16 -4
  63. data/lib/happyco_json/models/v1_create_inspections_response.rb +16 -4
  64. data/lib/happyco_json/models/v1_create_templates_request.rb +16 -4
  65. data/lib/happyco_json/models/v1_create_templates_response.rb +16 -4
  66. data/lib/happyco_json/models/{v1_inspection_status_changes_event_request.rb → v1_date.rb} +39 -20
  67. data/lib/happyco_json/models/v1_date_time.rb +16 -4
  68. data/lib/happyco_json/models/v1_event.rb +16 -4
  69. data/lib/happyco_json/models/v1_float_array.rb +16 -4
  70. data/lib/happyco_json/models/v1_folder.rb +16 -4
  71. data/lib/happyco_json/models/v1_folder_type.rb +13 -1
  72. data/lib/happyco_json/models/v1_footer_field.rb +16 -4
  73. data/lib/happyco_json/models/v1_header_field.rb +16 -4
  74. data/lib/happyco_json/models/v1_inspection.rb +29 -8
  75. data/lib/happyco_json/models/v1_inspection_data.rb +17 -5
  76. data/lib/happyco_json/models/v1_inspection_status_changes_event.rb +16 -4
  77. data/lib/happyco_json/models/v1_inspection_status_changes_event_ack_response.rb +16 -4
  78. data/lib/happyco_json/models/v1_integration_id.rb +16 -4
  79. data/lib/happyco_json/models/v1_item.rb +16 -4
  80. data/lib/happyco_json/models/v1_list_accounts_request.rb +16 -4
  81. data/lib/happyco_json/models/v1_list_accounts_response.rb +16 -4
  82. data/lib/happyco_json/models/v1_list_assets_request.rb +16 -4
  83. data/lib/happyco_json/models/v1_list_assets_response.rb +16 -4
  84. data/lib/happyco_json/models/v1_list_folders_request.rb +16 -4
  85. data/lib/happyco_json/models/v1_list_folders_response.rb +16 -4
  86. data/lib/happyco_json/models/v1_list_inspections_request.rb +38 -8
  87. data/lib/happyco_json/models/v1_list_inspections_response.rb +16 -4
  88. data/lib/happyco_json/models/v1_list_reports_request.rb +268 -0
  89. data/lib/happyco_json/models/v1_list_reports_response.rb +222 -0
  90. data/lib/happyco_json/models/v1_list_templates_request.rb +16 -4
  91. data/lib/happyco_json/models/v1_list_templates_response.rb +16 -4
  92. data/lib/happyco_json/models/v1_list_users_request.rb +16 -4
  93. data/lib/happyco_json/models/v1_list_users_response.rb +16 -4
  94. data/lib/happyco_json/models/v1_paging.rb +16 -4
  95. data/lib/happyco_json/models/v1_paging_response.rb +16 -4
  96. data/lib/happyco_json/models/v1_photo.rb +16 -4
  97. data/lib/happyco_json/models/v1_property.rb +16 -4
  98. data/lib/happyco_json/models/v1_rating_checkbox.rb +16 -4
  99. data/lib/happyco_json/models/v1_rating_control.rb +17 -5
  100. data/lib/happyco_json/models/v1_rating_drop_down.rb +16 -4
  101. data/lib/happyco_json/models/v1_rating_drop_down_option.rb +16 -4
  102. data/lib/happyco_json/models/v1_rating_group.rb +246 -0
  103. data/lib/happyco_json/models/v1_rating_groups.rb +1 -0
  104. data/lib/happyco_json/models/v1_rating_image.rb +13 -1
  105. data/lib/happyco_json/models/v1_rating_radio_group.rb +16 -4
  106. data/lib/happyco_json/models/v1_rating_radio_group_option.rb +16 -4
  107. data/lib/happyco_json/models/v1_rating_values.rb +16 -4
  108. data/lib/happyco_json/models/v1_report.rb +341 -0
  109. data/lib/happyco_json/models/v1_reports_created_event.rb +210 -0
  110. data/lib/happyco_json/models/{v1_event_handler_options.rb → v1_reports_created_event_ack_response.rb} +20 -17
  111. data/lib/happyco_json/models/v1_scheduled_inspection.rb +16 -4
  112. data/lib/happyco_json/models/v1_section.rb +16 -4
  113. data/lib/happyco_json/models/v1_set_assets_archived_request.rb +16 -4
  114. data/lib/happyco_json/models/v1_set_assets_archived_response.rb +16 -4
  115. data/lib/happyco_json/models/v1_set_inspections_archived_request.rb +16 -4
  116. data/lib/happyco_json/models/v1_set_inspections_archived_response.rb +16 -4
  117. data/lib/happyco_json/models/v1_set_templates_archived_request.rb +16 -4
  118. data/lib/happyco_json/models/v1_set_templates_archived_response.rb +16 -4
  119. data/lib/happyco_json/models/v1_signatory.rb +240 -0
  120. data/lib/happyco_json/models/v1_string_array.rb +16 -4
  121. data/lib/happyco_json/models/v1_template.rb +17 -5
  122. data/lib/happyco_json/models/v1_unit.rb +16 -4
  123. data/lib/happyco_json/models/v1_update_account_statuses_request.rb +16 -4
  124. data/lib/happyco_json/models/v1_update_account_statuses_response.rb +16 -4
  125. data/lib/happyco_json/models/v1_update_accounts_request.rb +16 -4
  126. data/lib/happyco_json/models/v1_update_accounts_response.rb +16 -4
  127. data/lib/happyco_json/models/v1_update_assets_request.rb +16 -4
  128. data/lib/happyco_json/models/v1_update_assets_response.rb +16 -4
  129. data/lib/happyco_json/models/v1_update_folder_statuses_request.rb +16 -4
  130. data/lib/happyco_json/models/v1_update_folder_statuses_response.rb +16 -4
  131. data/lib/happyco_json/models/v1_update_folders_request.rb +16 -4
  132. data/lib/happyco_json/models/v1_update_folders_response.rb +16 -4
  133. data/lib/happyco_json/models/v1_update_inspections_request.rb +16 -4
  134. data/lib/happyco_json/models/v1_update_inspections_response.rb +16 -4
  135. data/lib/happyco_json/models/v1_update_templates_request.rb +16 -4
  136. data/lib/happyco_json/models/v1_update_templates_response.rb +16 -4
  137. data/lib/happyco_json/models/v1_update_user_statuses_request.rb +16 -4
  138. data/lib/happyco_json/models/v1_update_user_statuses_response.rb +16 -4
  139. data/lib/happyco_json/models/v1_update_users_request.rb +16 -4
  140. data/lib/happyco_json/models/v1_update_users_response.rb +16 -4
  141. data/lib/happyco_json/models/v1_user.rb +16 -4
  142. data/lib/happyco_json/version.rb +14 -2
  143. data/lib/happyco_json.rb +27 -7
  144. data/spec/api/account_provisioning_service_api_spec.rb +13 -1
  145. data/spec/api/account_service_api_spec.rb +13 -1
  146. data/spec/api/account_users_service_api_spec.rb +13 -1
  147. data/spec/api/asset_service_api_spec.rb +25 -1
  148. data/spec/api/folder_service_api_spec.rb +13 -1
  149. data/spec/api/inspection_service_api_spec.rb +13 -1
  150. data/spec/api/report_service_api_spec.rb +58 -0
  151. data/spec/api/template_service_api_spec.rb +13 -1
  152. data/spec/api_client_spec.rb +13 -1
  153. data/spec/configuration_spec.rb +13 -1
  154. data/spec/models/create_accounts_request_account_with_admin_spec.rb +13 -1
  155. data/spec/models/create_accounts_response_account_id_with_admin_id_spec.rb +13 -1
  156. data/spec/models/inspection_status_change_status_spec.rb +13 -1
  157. data/spec/models/inspection_status_changes_event_inspection_status_change_spec.rb +13 -1
  158. data/spec/models/reports_created_event_report_created_spec.rb +59 -0
  159. data/spec/models/update_accounts_request_account_with_admin_id_spec.rb +13 -1
  160. data/spec/models/v1_account_spec.rb +13 -1
  161. data/spec/models/v1_add_asset_photo_request_spec.rb +77 -0
  162. data/spec/models/v1_add_asset_photo_response_spec.rb +53 -0
  163. data/spec/models/v1_add_inspection_photo_request_spec.rb +13 -1
  164. data/spec/models/v1_add_inspection_photo_response_spec.rb +13 -1
  165. data/spec/models/v1_add_inspection_photos_request_spec.rb +13 -1
  166. data/spec/models/v1_add_inspection_photos_response_spec.rb +13 -1
  167. data/spec/models/v1_add_users_request_spec.rb +13 -1
  168. data/spec/models/v1_add_users_response_spec.rb +13 -1
  169. data/spec/models/v1_asset_spec.rb +19 -1
  170. data/spec/models/v1_create_accounts_request_spec.rb +13 -1
  171. data/spec/models/v1_create_accounts_response_spec.rb +13 -1
  172. data/spec/models/v1_create_assets_request_spec.rb +13 -1
  173. data/spec/models/v1_create_assets_response_spec.rb +13 -1
  174. data/spec/models/v1_create_delegated_inspection_link_request_spec.rb +13 -1
  175. data/spec/models/v1_create_delegated_inspection_link_response_spec.rb +13 -1
  176. data/spec/models/v1_create_delegated_inspection_links_request_spec.rb +13 -1
  177. data/spec/models/v1_create_delegated_inspection_links_response_spec.rb +13 -1
  178. data/spec/models/v1_create_folders_request_spec.rb +13 -1
  179. data/spec/models/v1_create_folders_response_spec.rb +13 -1
  180. data/spec/models/v1_create_inspections_request_spec.rb +13 -1
  181. data/spec/models/v1_create_inspections_response_spec.rb +13 -1
  182. data/spec/models/v1_create_templates_request_spec.rb +13 -1
  183. data/spec/models/v1_create_templates_response_spec.rb +13 -1
  184. data/spec/models/v1_date_spec.rb +65 -0
  185. data/spec/models/v1_date_time_spec.rb +13 -1
  186. data/spec/models/v1_event_spec.rb +13 -1
  187. data/spec/models/v1_float_array_spec.rb +13 -1
  188. data/spec/models/v1_folder_spec.rb +13 -1
  189. data/spec/models/v1_folder_type_spec.rb +13 -1
  190. data/spec/models/v1_footer_field_spec.rb +13 -1
  191. data/spec/models/v1_header_field_spec.rb +13 -1
  192. data/spec/models/v1_inspection_data_spec.rb +13 -1
  193. data/spec/models/v1_inspection_spec.rb +19 -1
  194. data/spec/models/v1_inspection_status_changes_event_ack_response_spec.rb +13 -1
  195. data/spec/models/v1_inspection_status_changes_event_spec.rb +13 -1
  196. data/spec/models/v1_integration_id_spec.rb +13 -1
  197. data/spec/models/v1_item_spec.rb +13 -1
  198. data/spec/models/v1_list_accounts_request_spec.rb +13 -1
  199. data/spec/models/v1_list_accounts_response_spec.rb +13 -1
  200. data/spec/models/v1_list_assets_request_spec.rb +13 -1
  201. data/spec/models/v1_list_assets_response_spec.rb +13 -1
  202. data/spec/models/v1_list_folders_request_spec.rb +13 -1
  203. data/spec/models/v1_list_folders_response_spec.rb +13 -1
  204. data/spec/models/v1_list_inspections_request_spec.rb +25 -1
  205. data/spec/models/v1_list_inspections_response_spec.rb +13 -1
  206. data/spec/models/v1_list_reports_request_spec.rb +89 -0
  207. data/spec/models/v1_list_reports_response_spec.rb +65 -0
  208. data/spec/models/v1_list_templates_request_spec.rb +13 -1
  209. data/spec/models/v1_list_templates_response_spec.rb +13 -1
  210. data/spec/models/v1_list_users_request_spec.rb +13 -1
  211. data/spec/models/v1_list_users_response_spec.rb +13 -1
  212. data/spec/models/v1_paging_response_spec.rb +13 -1
  213. data/spec/models/v1_paging_spec.rb +13 -1
  214. data/spec/models/v1_photo_spec.rb +13 -1
  215. data/spec/models/v1_property_spec.rb +13 -1
  216. data/spec/models/v1_rating_checkbox_spec.rb +13 -1
  217. data/spec/models/v1_rating_control_spec.rb +13 -1
  218. data/spec/models/v1_rating_drop_down_option_spec.rb +13 -1
  219. data/spec/models/v1_rating_drop_down_spec.rb +13 -1
  220. data/spec/models/v1_rating_group_spec.rb +77 -0
  221. data/spec/models/v1_rating_image_spec.rb +13 -1
  222. data/spec/models/v1_rating_radio_group_option_spec.rb +13 -1
  223. data/spec/models/v1_rating_radio_group_spec.rb +13 -1
  224. data/spec/models/v1_rating_values_spec.rb +13 -1
  225. data/spec/models/v1_report_spec.rb +137 -0
  226. data/spec/models/v1_reports_created_event_ack_response_spec.rb +47 -0
  227. data/spec/models/v1_reports_created_event_spec.rb +59 -0
  228. data/spec/models/v1_scheduled_inspection_spec.rb +13 -1
  229. data/spec/models/v1_section_spec.rb +13 -1
  230. data/spec/models/v1_set_assets_archived_request_spec.rb +13 -1
  231. data/spec/models/v1_set_assets_archived_response_spec.rb +13 -1
  232. data/spec/models/v1_set_inspections_archived_request_spec.rb +13 -1
  233. data/spec/models/v1_set_inspections_archived_response_spec.rb +13 -1
  234. data/spec/models/v1_set_templates_archived_request_spec.rb +13 -1
  235. data/spec/models/v1_set_templates_archived_response_spec.rb +13 -1
  236. data/spec/models/v1_signatory_spec.rb +77 -0
  237. data/spec/models/v1_string_array_spec.rb +13 -1
  238. data/spec/models/v1_template_spec.rb +13 -1
  239. data/spec/models/v1_unit_spec.rb +13 -1
  240. data/spec/models/v1_update_account_statuses_request_spec.rb +13 -1
  241. data/spec/models/v1_update_account_statuses_response_spec.rb +13 -1
  242. data/spec/models/v1_update_accounts_request_spec.rb +13 -1
  243. data/spec/models/v1_update_accounts_response_spec.rb +13 -1
  244. data/spec/models/v1_update_assets_request_spec.rb +13 -1
  245. data/spec/models/v1_update_assets_response_spec.rb +13 -1
  246. data/spec/models/v1_update_folder_statuses_request_spec.rb +13 -1
  247. data/spec/models/v1_update_folder_statuses_response_spec.rb +13 -1
  248. data/spec/models/v1_update_folders_request_spec.rb +13 -1
  249. data/spec/models/v1_update_folders_response_spec.rb +13 -1
  250. data/spec/models/v1_update_inspections_request_spec.rb +13 -1
  251. data/spec/models/v1_update_inspections_response_spec.rb +13 -1
  252. data/spec/models/v1_update_templates_request_spec.rb +13 -1
  253. data/spec/models/v1_update_templates_response_spec.rb +13 -1
  254. data/spec/models/v1_update_user_statuses_request_spec.rb +13 -1
  255. data/spec/models/v1_update_user_statuses_response_spec.rb +13 -1
  256. data/spec/models/v1_update_users_request_spec.rb +13 -1
  257. data/spec/models/v1_update_users_response_spec.rb +13 -1
  258. data/spec/models/v1_user_spec.rb +13 -1
  259. data/spec/spec_helper.rb +13 -1
  260. metadata +153 -124
  261. data/Gemfile +0 -7
  262. data/Rakefile +0 -8
  263. data/docs/V1EventAck.md +0 -10
  264. data/docs/V1InspectionStatusChangesEventAck.md +0 -8
  265. data/docs/V1InspectionStatusChangesEventRequest.md +0 -9
  266. data/docs/V1RatingGroups.md +0 -9
  267. data/lib/happyco_json/models/v1_rating_groups.rb +0 -200
  268. data/spec/models/v1_event_ack_spec.rb +0 -53
  269. data/spec/models/v1_event_handler_options_spec.rb +0 -41
  270. data/spec/models/v1_inspection_status_changes_event_ack_spec.rb +0 -41
  271. data/spec/models/v1_inspection_status_changes_event_request_spec.rb +0 -47
  272. data/spec/models/v1_rating_groups_spec.rb +0 -47
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -95,7 +107,7 @@ module HappyCo
95
107
  def build_from_hash(attributes)
96
108
  return nil unless attributes.is_a?(Hash)
97
109
  self.class.swagger_types.each_pair do |key, type|
98
- if type =~ /\AArray<(.*)>/i
110
+ if type =~ /^Array<(.*)>/i
99
111
  # check to ensure the input is an array given that the the attribute
100
112
  # is documented as an array but the input is not
101
113
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -126,7 +138,7 @@ module HappyCo
126
138
  when :Float
127
139
  value.to_f
128
140
  when :BOOLEAN
129
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
130
142
  true
131
143
  else
132
144
  false
@@ -137,7 +149,7 @@ module HappyCo
137
149
  when /\AArray<(?<inner_type>.+)>\z/
138
150
  inner_type = Regexp.last_match[:inner_type]
139
151
  value.map { |v| _deserialize(inner_type, v) }
140
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
141
153
  k_type = Regexp.last_match[:k_type]
142
154
  v_type = Regexp.last_match[:v_type]
143
155
  {}.tap do |hash|
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -75,7 +87,7 @@ module HappyCo
75
87
  def build_from_hash(attributes)
76
88
  return nil unless attributes.is_a?(Hash)
77
89
  self.class.swagger_types.each_pair do |key, type|
78
- if type =~ /\AArray<(.*)>/i
90
+ if type =~ /^Array<(.*)>/i
79
91
  # check to ensure the input is an array given that the the attribute
80
92
  # is documented as an array but the input is not
81
93
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -106,7 +118,7 @@ module HappyCo
106
118
  when :Float
107
119
  value.to_f
108
120
  when :BOOLEAN
109
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
121
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
110
122
  true
111
123
  else
112
124
  false
@@ -117,7 +129,7 @@ module HappyCo
117
129
  when /\AArray<(?<inner_type>.+)>\z/
118
130
  inner_type = Regexp.last_match[:inner_type]
119
131
  value.map { |v| _deserialize(inner_type, v) }
120
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
132
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
121
133
  k_type = Regexp.last_match[:k_type]
122
134
  v_type = Regexp.last_match[:v_type]
123
135
  {}.tap do |hash|
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -86,7 +98,7 @@ module HappyCo
86
98
  def build_from_hash(attributes)
87
99
  return nil unless attributes.is_a?(Hash)
88
100
  self.class.swagger_types.each_pair do |key, type|
89
- if type =~ /\AArray<(.*)>/i
101
+ if type =~ /^Array<(.*)>/i
90
102
  # check to ensure the input is an array given that the the attribute
91
103
  # is documented as an array but the input is not
92
104
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -117,7 +129,7 @@ module HappyCo
117
129
  when :Float
118
130
  value.to_f
119
131
  when :BOOLEAN
120
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
132
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
121
133
  true
122
134
  else
123
135
  false
@@ -128,7 +140,7 @@ module HappyCo
128
140
  when /\AArray<(?<inner_type>.+)>\z/
129
141
  inner_type = Regexp.last_match[:inner_type]
130
142
  value.map { |v| _deserialize(inner_type, v) }
131
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
143
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
132
144
  k_type = Regexp.last_match[:k_type]
133
145
  v_type = Regexp.last_match[:v_type]
134
146
  {}.tap do |hash|
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -75,7 +87,7 @@ module HappyCo
75
87
  def build_from_hash(attributes)
76
88
  return nil unless attributes.is_a?(Hash)
77
89
  self.class.swagger_types.each_pair do |key, type|
78
- if type =~ /\AArray<(.*)>/i
90
+ if type =~ /^Array<(.*)>/i
79
91
  # check to ensure the input is an array given that the the attribute
80
92
  # is documented as an array but the input is not
81
93
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -106,7 +118,7 @@ module HappyCo
106
118
  when :Float
107
119
  value.to_f
108
120
  when :BOOLEAN
109
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
121
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
110
122
  true
111
123
  else
112
124
  false
@@ -117,7 +129,7 @@ module HappyCo
117
129
  when /\AArray<(?<inner_type>.+)>\z/
118
130
  inner_type = Regexp.last_match[:inner_type]
119
131
  value.map { |v| _deserialize(inner_type, v) }
120
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
132
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
121
133
  k_type = Regexp.last_match[:k_type]
122
134
  v_type = Regexp.last_match[:v_type]
123
135
  {}.tap do |hash|
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -104,7 +116,7 @@ module HappyCo
104
116
  def build_from_hash(attributes)
105
117
  return nil unless attributes.is_a?(Hash)
106
118
  self.class.swagger_types.each_pair do |key, type|
107
- if type =~ /\AArray<(.*)>/i
119
+ if type =~ /^Array<(.*)>/i
108
120
  # check to ensure the input is an array given that the the attribute
109
121
  # is documented as an array but the input is not
110
122
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -135,7 +147,7 @@ module HappyCo
135
147
  when :Float
136
148
  value.to_f
137
149
  when :BOOLEAN
138
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
139
151
  true
140
152
  else
141
153
  false
@@ -146,7 +158,7 @@ module HappyCo
146
158
  when /\AArray<(?<inner_type>.+)>\z/
147
159
  inner_type = Regexp.last_match[:inner_type]
148
160
  value.map { |v| _deserialize(inner_type, v) }
149
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
150
162
  k_type = Regexp.last_match[:k_type]
151
163
  v_type = Regexp.last_match[:v_type]
152
164
  {}.tap do |hash|
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -75,7 +87,7 @@ module HappyCo
75
87
  def build_from_hash(attributes)
76
88
  return nil unless attributes.is_a?(Hash)
77
89
  self.class.swagger_types.each_pair do |key, type|
78
- if type =~ /\AArray<(.*)>/i
90
+ if type =~ /^Array<(.*)>/i
79
91
  # check to ensure the input is an array given that the the attribute
80
92
  # is documented as an array but the input is not
81
93
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -106,7 +118,7 @@ module HappyCo
106
118
  when :Float
107
119
  value.to_f
108
120
  when :BOOLEAN
109
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
121
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
110
122
  true
111
123
  else
112
124
  false
@@ -117,7 +129,7 @@ module HappyCo
117
129
  when /\AArray<(?<inner_type>.+)>\z/
118
130
  inner_type = Regexp.last_match[:inner_type]
119
131
  value.map { |v| _deserialize(inner_type, v) }
120
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
132
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
121
133
  k_type = Regexp.last_match[:k_type]
122
134
  v_type = Regexp.last_match[:v_type]
123
135
  {}.tap do |hash|
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -104,7 +116,7 @@ module HappyCo
104
116
  def build_from_hash(attributes)
105
117
  return nil unless attributes.is_a?(Hash)
106
118
  self.class.swagger_types.each_pair do |key, type|
107
- if type =~ /\AArray<(.*)>/i
119
+ if type =~ /^Array<(.*)>/i
108
120
  # check to ensure the input is an array given that the the attribute
109
121
  # is documented as an array but the input is not
110
122
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -135,7 +147,7 @@ module HappyCo
135
147
  when :Float
136
148
  value.to_f
137
149
  when :BOOLEAN
138
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
139
151
  true
140
152
  else
141
153
  false
@@ -146,7 +158,7 @@ module HappyCo
146
158
  when /\AArray<(?<inner_type>.+)>\z/
147
159
  inner_type = Regexp.last_match[:inner_type]
148
160
  value.map { |v| _deserialize(inner_type, v) }
149
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
150
162
  k_type = Regexp.last_match[:k_type]
151
163
  v_type = Regexp.last_match[:v_type]
152
164
  {}.tap do |hash|
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -75,7 +87,7 @@ module HappyCo
75
87
  def build_from_hash(attributes)
76
88
  return nil unless attributes.is_a?(Hash)
77
89
  self.class.swagger_types.each_pair do |key, type|
78
- if type =~ /\AArray<(.*)>/i
90
+ if type =~ /^Array<(.*)>/i
79
91
  # check to ensure the input is an array given that the the attribute
80
92
  # is documented as an array but the input is not
81
93
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -106,7 +118,7 @@ module HappyCo
106
118
  when :Float
107
119
  value.to_f
108
120
  when :BOOLEAN
109
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
121
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
110
122
  true
111
123
  else
112
124
  false
@@ -117,7 +129,7 @@ module HappyCo
117
129
  when /\AArray<(?<inner_type>.+)>\z/
118
130
  inner_type = Regexp.last_match[:inner_type]
119
131
  value.map { |v| _deserialize(inner_type, v) }
120
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
132
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
121
133
  k_type = Regexp.last_match[:k_type]
122
134
  v_type = Regexp.last_match[:v_type]
123
135
  {}.tap do |hash|
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -95,7 +107,7 @@ module HappyCo
95
107
  def build_from_hash(attributes)
96
108
  return nil unless attributes.is_a?(Hash)
97
109
  self.class.swagger_types.each_pair do |key, type|
98
- if type =~ /\AArray<(.*)>/i
110
+ if type =~ /^Array<(.*)>/i
99
111
  # check to ensure the input is an array given that the the attribute
100
112
  # is documented as an array but the input is not
101
113
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -126,7 +138,7 @@ module HappyCo
126
138
  when :Float
127
139
  value.to_f
128
140
  when :BOOLEAN
129
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
130
142
  true
131
143
  else
132
144
  false
@@ -137,7 +149,7 @@ module HappyCo
137
149
  when /\AArray<(?<inner_type>.+)>\z/
138
150
  inner_type = Regexp.last_match[:inner_type]
139
151
  value.map { |v| _deserialize(inner_type, v) }
140
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
141
153
  k_type = Regexp.last_match[:k_type]
142
154
  v_type = Regexp.last_match[:v_type]
143
155
  {}.tap do |hash|