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.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/README.md +20 -12
- data/docs/AssetServiceApi.md +45 -0
- data/docs/ReportServiceApi.md +54 -0
- data/docs/ReportsCreatedEventReportCreated.md +9 -0
- data/docs/V1AddAssetPhotoRequest.md +12 -0
- data/docs/V1AddAssetPhotoResponse.md +8 -0
- data/docs/V1Asset.md +1 -0
- data/docs/V1Date.md +10 -0
- data/docs/V1Inspection.md +1 -0
- data/docs/V1InspectionData.md +1 -1
- data/docs/V1ListInspectionsRequest.md +2 -0
- data/docs/V1ListReportsRequest.md +14 -0
- data/docs/V1ListReportsResponse.md +10 -0
- data/docs/V1RatingGroup.md +12 -0
- data/docs/V1Report.md +22 -0
- data/docs/V1ReportsCreatedEvent.md +9 -0
- data/docs/{V1EventHandlerOptions.md → V1ReportsCreatedEventAckResponse.md} +1 -2
- data/docs/V1Signatory.md +12 -0
- data/docs/V1Template.md +1 -1
- data/git_push.sh +12 -0
- data/happyco_json.gemspec +14 -4
- data/lib/happyco_json/api/account_provisioning_service_api.rb +25 -5
- data/lib/happyco_json/api/account_service_api.rb +25 -5
- data/lib/happyco_json/api/account_users_service_api.rb +37 -9
- data/lib/happyco_json/api/asset_service_api.rb +100 -11
- data/lib/happyco_json/api/folder_service_api.rb +37 -9
- data/lib/happyco_json/api/inspection_service_api.rb +55 -15
- data/lib/happyco_json/api/report_service_api.rb +91 -0
- data/lib/happyco_json/api/template_service_api.rb +43 -11
- data/lib/happyco_json/api_client.rb +20 -17
- data/lib/happyco_json/api_error.rb +18 -8
- data/lib/happyco_json/configuration.rb +13 -1
- data/lib/happyco_json/helpers.rb +7 -4
- data/lib/happyco_json/models/create_accounts_request_account_with_admin.rb +16 -4
- data/lib/happyco_json/models/create_accounts_response_account_id_with_admin_id.rb +16 -4
- data/lib/happyco_json/models/inspection_status_change_status.rb +13 -1
- data/lib/happyco_json/models/inspection_status_changes_event_inspection_status_change.rb +16 -4
- data/lib/happyco_json/models/{v1_event_ack.rb → reports_created_event_report_created.rb} +30 -29
- data/lib/happyco_json/models/update_accounts_request_account_with_admin_id.rb +16 -4
- data/lib/happyco_json/models/v1_account.rb +16 -4
- data/lib/happyco_json/models/v1_add_asset_photo_request.rb +237 -0
- data/lib/happyco_json/models/{v1_inspection_status_changes_event_ack.rb → v1_add_asset_photo_response.rb} +25 -14
- data/lib/happyco_json/models/v1_add_inspection_photo_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photo_response.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photos_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photos_response.rb +16 -4
- data/lib/happyco_json/models/v1_add_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_asset.rb +29 -8
- data/lib/happyco_json/models/v1_create_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_link_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_link_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_links_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_links_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_inspections_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_templates_response.rb +16 -4
- data/lib/happyco_json/models/{v1_inspection_status_changes_event_request.rb → v1_date.rb} +39 -20
- data/lib/happyco_json/models/v1_date_time.rb +16 -4
- data/lib/happyco_json/models/v1_event.rb +16 -4
- data/lib/happyco_json/models/v1_float_array.rb +16 -4
- data/lib/happyco_json/models/v1_folder.rb +16 -4
- data/lib/happyco_json/models/v1_folder_type.rb +13 -1
- data/lib/happyco_json/models/v1_footer_field.rb +16 -4
- data/lib/happyco_json/models/v1_header_field.rb +16 -4
- data/lib/happyco_json/models/v1_inspection.rb +29 -8
- data/lib/happyco_json/models/v1_inspection_data.rb +17 -5
- data/lib/happyco_json/models/v1_inspection_status_changes_event.rb +16 -4
- data/lib/happyco_json/models/v1_inspection_status_changes_event_ack_response.rb +16 -4
- data/lib/happyco_json/models/v1_integration_id.rb +16 -4
- data/lib/happyco_json/models/v1_item.rb +16 -4
- data/lib/happyco_json/models/v1_list_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_inspections_request.rb +38 -8
- data/lib/happyco_json/models/v1_list_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_reports_request.rb +268 -0
- data/lib/happyco_json/models/v1_list_reports_response.rb +222 -0
- data/lib/happyco_json/models/v1_list_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_templates_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_paging.rb +16 -4
- data/lib/happyco_json/models/v1_paging_response.rb +16 -4
- data/lib/happyco_json/models/v1_photo.rb +16 -4
- data/lib/happyco_json/models/v1_property.rb +16 -4
- data/lib/happyco_json/models/v1_rating_checkbox.rb +16 -4
- data/lib/happyco_json/models/v1_rating_control.rb +17 -5
- data/lib/happyco_json/models/v1_rating_drop_down.rb +16 -4
- data/lib/happyco_json/models/v1_rating_drop_down_option.rb +16 -4
- data/lib/happyco_json/models/v1_rating_group.rb +246 -0
- data/lib/happyco_json/models/v1_rating_groups.rb +1 -0
- data/lib/happyco_json/models/v1_rating_image.rb +13 -1
- data/lib/happyco_json/models/v1_rating_radio_group.rb +16 -4
- data/lib/happyco_json/models/v1_rating_radio_group_option.rb +16 -4
- data/lib/happyco_json/models/v1_rating_values.rb +16 -4
- data/lib/happyco_json/models/v1_report.rb +341 -0
- data/lib/happyco_json/models/v1_reports_created_event.rb +210 -0
- data/lib/happyco_json/models/{v1_event_handler_options.rb → v1_reports_created_event_ack_response.rb} +20 -17
- data/lib/happyco_json/models/v1_scheduled_inspection.rb +16 -4
- data/lib/happyco_json/models/v1_section.rb +16 -4
- data/lib/happyco_json/models/v1_set_assets_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_assets_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_set_inspections_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_inspections_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_set_templates_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_templates_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_signatory.rb +240 -0
- data/lib/happyco_json/models/v1_string_array.rb +16 -4
- data/lib/happyco_json/models/v1_template.rb +17 -5
- data/lib/happyco_json/models/v1_unit.rb +16 -4
- data/lib/happyco_json/models/v1_update_account_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_account_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_folder_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_folder_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_inspections_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_templates_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_user_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_user_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_user.rb +16 -4
- data/lib/happyco_json/version.rb +14 -2
- data/lib/happyco_json.rb +27 -7
- data/spec/api/account_provisioning_service_api_spec.rb +13 -1
- data/spec/api/account_service_api_spec.rb +13 -1
- data/spec/api/account_users_service_api_spec.rb +13 -1
- data/spec/api/asset_service_api_spec.rb +25 -1
- data/spec/api/folder_service_api_spec.rb +13 -1
- data/spec/api/inspection_service_api_spec.rb +13 -1
- data/spec/api/report_service_api_spec.rb +58 -0
- data/spec/api/template_service_api_spec.rb +13 -1
- data/spec/api_client_spec.rb +13 -1
- data/spec/configuration_spec.rb +13 -1
- data/spec/models/create_accounts_request_account_with_admin_spec.rb +13 -1
- data/spec/models/create_accounts_response_account_id_with_admin_id_spec.rb +13 -1
- data/spec/models/inspection_status_change_status_spec.rb +13 -1
- data/spec/models/inspection_status_changes_event_inspection_status_change_spec.rb +13 -1
- data/spec/models/reports_created_event_report_created_spec.rb +59 -0
- data/spec/models/update_accounts_request_account_with_admin_id_spec.rb +13 -1
- data/spec/models/v1_account_spec.rb +13 -1
- data/spec/models/v1_add_asset_photo_request_spec.rb +77 -0
- data/spec/models/v1_add_asset_photo_response_spec.rb +53 -0
- data/spec/models/v1_add_inspection_photo_request_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photo_response_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photos_request_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photos_response_spec.rb +13 -1
- data/spec/models/v1_add_users_request_spec.rb +13 -1
- data/spec/models/v1_add_users_response_spec.rb +13 -1
- data/spec/models/v1_asset_spec.rb +19 -1
- data/spec/models/v1_create_accounts_request_spec.rb +13 -1
- data/spec/models/v1_create_accounts_response_spec.rb +13 -1
- data/spec/models/v1_create_assets_request_spec.rb +13 -1
- data/spec/models/v1_create_assets_response_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_link_request_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_link_response_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_links_request_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_links_response_spec.rb +13 -1
- data/spec/models/v1_create_folders_request_spec.rb +13 -1
- data/spec/models/v1_create_folders_response_spec.rb +13 -1
- data/spec/models/v1_create_inspections_request_spec.rb +13 -1
- data/spec/models/v1_create_inspections_response_spec.rb +13 -1
- data/spec/models/v1_create_templates_request_spec.rb +13 -1
- data/spec/models/v1_create_templates_response_spec.rb +13 -1
- data/spec/models/v1_date_spec.rb +65 -0
- data/spec/models/v1_date_time_spec.rb +13 -1
- data/spec/models/v1_event_spec.rb +13 -1
- data/spec/models/v1_float_array_spec.rb +13 -1
- data/spec/models/v1_folder_spec.rb +13 -1
- data/spec/models/v1_folder_type_spec.rb +13 -1
- data/spec/models/v1_footer_field_spec.rb +13 -1
- data/spec/models/v1_header_field_spec.rb +13 -1
- data/spec/models/v1_inspection_data_spec.rb +13 -1
- data/spec/models/v1_inspection_spec.rb +19 -1
- data/spec/models/v1_inspection_status_changes_event_ack_response_spec.rb +13 -1
- data/spec/models/v1_inspection_status_changes_event_spec.rb +13 -1
- data/spec/models/v1_integration_id_spec.rb +13 -1
- data/spec/models/v1_item_spec.rb +13 -1
- data/spec/models/v1_list_accounts_request_spec.rb +13 -1
- data/spec/models/v1_list_accounts_response_spec.rb +13 -1
- data/spec/models/v1_list_assets_request_spec.rb +13 -1
- data/spec/models/v1_list_assets_response_spec.rb +13 -1
- data/spec/models/v1_list_folders_request_spec.rb +13 -1
- data/spec/models/v1_list_folders_response_spec.rb +13 -1
- data/spec/models/v1_list_inspections_request_spec.rb +25 -1
- data/spec/models/v1_list_inspections_response_spec.rb +13 -1
- data/spec/models/v1_list_reports_request_spec.rb +89 -0
- data/spec/models/v1_list_reports_response_spec.rb +65 -0
- data/spec/models/v1_list_templates_request_spec.rb +13 -1
- data/spec/models/v1_list_templates_response_spec.rb +13 -1
- data/spec/models/v1_list_users_request_spec.rb +13 -1
- data/spec/models/v1_list_users_response_spec.rb +13 -1
- data/spec/models/v1_paging_response_spec.rb +13 -1
- data/spec/models/v1_paging_spec.rb +13 -1
- data/spec/models/v1_photo_spec.rb +13 -1
- data/spec/models/v1_property_spec.rb +13 -1
- data/spec/models/v1_rating_checkbox_spec.rb +13 -1
- data/spec/models/v1_rating_control_spec.rb +13 -1
- data/spec/models/v1_rating_drop_down_option_spec.rb +13 -1
- data/spec/models/v1_rating_drop_down_spec.rb +13 -1
- data/spec/models/v1_rating_group_spec.rb +77 -0
- data/spec/models/v1_rating_image_spec.rb +13 -1
- data/spec/models/v1_rating_radio_group_option_spec.rb +13 -1
- data/spec/models/v1_rating_radio_group_spec.rb +13 -1
- data/spec/models/v1_rating_values_spec.rb +13 -1
- data/spec/models/v1_report_spec.rb +137 -0
- data/spec/models/v1_reports_created_event_ack_response_spec.rb +47 -0
- data/spec/models/v1_reports_created_event_spec.rb +59 -0
- data/spec/models/v1_scheduled_inspection_spec.rb +13 -1
- data/spec/models/v1_section_spec.rb +13 -1
- data/spec/models/v1_set_assets_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_assets_archived_response_spec.rb +13 -1
- data/spec/models/v1_set_inspections_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_inspections_archived_response_spec.rb +13 -1
- data/spec/models/v1_set_templates_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_templates_archived_response_spec.rb +13 -1
- data/spec/models/v1_signatory_spec.rb +77 -0
- data/spec/models/v1_string_array_spec.rb +13 -1
- data/spec/models/v1_template_spec.rb +13 -1
- data/spec/models/v1_unit_spec.rb +13 -1
- data/spec/models/v1_update_account_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_account_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_accounts_request_spec.rb +13 -1
- data/spec/models/v1_update_accounts_response_spec.rb +13 -1
- data/spec/models/v1_update_assets_request_spec.rb +13 -1
- data/spec/models/v1_update_assets_response_spec.rb +13 -1
- data/spec/models/v1_update_folder_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_folder_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_folders_request_spec.rb +13 -1
- data/spec/models/v1_update_folders_response_spec.rb +13 -1
- data/spec/models/v1_update_inspections_request_spec.rb +13 -1
- data/spec/models/v1_update_inspections_response_spec.rb +13 -1
- data/spec/models/v1_update_templates_request_spec.rb +13 -1
- data/spec/models/v1_update_templates_response_spec.rb +13 -1
- data/spec/models/v1_update_user_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_user_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_users_request_spec.rb +13 -1
- data/spec/models/v1_update_users_response_spec.rb +13 -1
- data/spec/models/v1_user_spec.rb +13 -1
- data/spec/spec_helper.rb +13 -1
- metadata +153 -124
- data/Gemfile +0 -7
- data/Rakefile +0 -8
- data/docs/V1EventAck.md +0 -10
- data/docs/V1InspectionStatusChangesEventAck.md +0 -8
- data/docs/V1InspectionStatusChangesEventRequest.md +0 -9
- data/docs/V1RatingGroups.md +0 -9
- data/lib/happyco_json/models/v1_rating_groups.rb +0 -200
- data/spec/models/v1_event_ack_spec.rb +0 -53
- data/spec/models/v1_event_handler_options_spec.rb +0 -41
- data/spec/models/v1_inspection_status_changes_event_ack_spec.rb +0 -41
- data/spec/models/v1_inspection_status_changes_event_request_spec.rb +0 -47
- 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:
|
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 =~
|
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 =~
|
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
|
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:
|
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 =~
|
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 =~
|
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
|
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:
|
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 =~
|
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 =~
|
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
|
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:
|
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 =~
|
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 =~
|
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
|
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:
|
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 =~
|
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 =~
|
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
|
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:
|
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 =~
|
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 =~
|
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
|
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:
|
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 =~
|
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 =~
|
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
|
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:
|
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 =~
|
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 =~
|
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
|
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:
|
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 =~
|
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 =~
|
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
|
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|
|