phrase 2.17.0 → 2.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +14 -29
- data/docs/Account.md +2 -2
- data/docs/AccountDetails.md +2 -2
- data/docs/Authorization.md +3 -3
- data/docs/AuthorizationCreateParameters.md +1 -1
- data/docs/AuthorizationUpdateParameters.md +1 -1
- data/docs/AuthorizationWithToken.md +3 -3
- data/docs/BitbucketSync.md +2 -2
- data/docs/BlacklistedKey.md +2 -2
- data/docs/Branch.md +3 -3
- data/docs/Comment.md +2 -2
- data/docs/CommentReaction.md +2 -2
- data/docs/CommentRepliesApi.md +3 -1
- data/docs/CommentsApi.md +5 -3
- data/docs/CommentsListParameters.md +3 -1
- data/docs/CurrentUser.md +2 -2
- data/docs/Distribution.md +2 -2
- data/docs/DistributionCreateParameters.md +1 -1
- data/docs/DistributionPreview.md +2 -2
- data/docs/Document.md +2 -2
- data/docs/FigmaAttachment.md +2 -2
- data/docs/GitlabSync.md +2 -2
- data/docs/GitlabSyncHistory.md +3 -3
- data/docs/{GitlabSyncHistoryErrors.md → GitlabSyncHistoryErrorsInner.md} +2 -2
- data/docs/Glossary.md +2 -2
- data/docs/GlossaryTerm.md +2 -2
- data/docs/GlossaryTermTranslation.md +2 -2
- data/docs/Invitation.md +5 -5
- data/docs/{InlineResponse422.md → InvitationCreate422Response.md} +3 -3
- data/docs/{InlineResponse422Errors.md → InvitationCreate422ResponseErrorsInner.md} +2 -2
- data/docs/Job.md +3 -3
- data/docs/JobComment.md +2 -2
- data/docs/JobCommentsApi.md +3 -1
- data/docs/JobCreateParameters.md +1 -1
- data/docs/JobDetails.md +3 -3
- data/docs/JobLocale.md +2 -2
- data/docs/JobLocalesApi.md +1 -1
- data/docs/JobTemplate.md +2 -2
- data/docs/JobTemplateDetails.md +2 -2
- data/docs/JobTemplateLocalesApi.md +1 -1
- data/docs/JobTemplatesApi.md +2 -2
- data/docs/JobUpdateParameters.md +1 -1
- data/docs/JobsApi.md +1 -1
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/Locale.md +2 -2
- data/docs/LocaleDetails.md +2 -2
- data/docs/LocalesApi.md +1 -1
- data/docs/Member.md +4 -4
- data/docs/MemberProjectDetail.md +3 -3
- data/docs/{MemberProjectDetailProjectRoles.md → MemberProjectDetailProjectRolesInner.md} +2 -2
- data/docs/{MemberSpaces.md → MemberSpacesInner.md} +4 -4
- data/docs/Notification.md +6 -6
- data/docs/NotificationGroup.md +2 -2
- data/docs/NotificationGroupDetail.md +2 -2
- data/docs/OrganizationJobTemplate.md +2 -2
- data/docs/OrganizationJobTemplateDetails.md +2 -2
- data/docs/OrganizationJobTemplateLocalesApi.md +1 -1
- data/docs/OrganizationJobTemplatesApi.md +2 -2
- data/docs/Project.md +2 -2
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectDetails.md +2 -2
- data/docs/ProjectLocales.md +2 -2
- data/docs/ProjectShort.md +2 -2
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/ProjectsApi.md +1 -1
- data/docs/Release.md +2 -2
- data/docs/ReleasePreview.md +2 -2
- data/docs/RepliesListParameters.md +3 -1
- data/docs/Screenshot.md +2 -2
- data/docs/ScreenshotMarker.md +2 -2
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/ScreenshotsApi.md +1 -1
- data/docs/Space.md +2 -2
- data/docs/Space1.md +2 -2
- data/docs/Styleguide.md +2 -2
- data/docs/StyleguideCreateParameters.md +1 -1
- data/docs/StyleguideDetails.md +2 -2
- data/docs/StyleguideUpdateParameters.md +1 -1
- data/docs/Tag.md +2 -2
- data/docs/TagWithStats.md +2 -2
- data/docs/Team.md +2 -2
- data/docs/TeamDetail.md +2 -2
- data/docs/TeamShort.md +2 -2
- data/docs/Translation.md +2 -2
- data/docs/TranslationDetails.md +2 -2
- data/docs/TranslationKey.md +2 -2
- data/docs/TranslationKeyDetails.md +2 -2
- data/docs/TranslationOrder.md +2 -2
- data/docs/TranslationVersion.md +3 -3
- data/docs/TranslationVersionWithUser.md +3 -3
- data/docs/Upload.md +2 -2
- data/docs/UploadsApi.md +4 -4
- data/docs/User.md +2 -2
- data/docs/Variable.md +2 -2
- data/docs/Webhook.md +2 -2
- data/docs/WebhookDelivery.md +3 -3
- data/lib/phrase/api/comment_replies_api.rb +3 -0
- data/lib/phrase/api/comments_api.rb +3 -0
- data/lib/phrase/api/job_comments_api.rb +3 -0
- data/lib/phrase/configuration.rb +6 -6
- data/lib/phrase/models/account.rb +3 -1
- data/lib/phrase/models/account_details.rb +4 -3
- data/lib/phrase/models/account_search_result.rb +3 -1
- data/lib/phrase/models/affected_count.rb +3 -1
- data/lib/phrase/models/affected_resources.rb +3 -1
- data/lib/phrase/models/authorization.rb +3 -1
- data/lib/phrase/models/authorization_create_parameters.rb +3 -1
- data/lib/phrase/models/authorization_update_parameters.rb +3 -1
- data/lib/phrase/models/authorization_with_token.rb +4 -3
- data/lib/phrase/models/bitbucket_sync.rb +3 -1
- data/lib/phrase/models/bitbucket_sync_export_parameters.rb +3 -1
- data/lib/phrase/models/bitbucket_sync_export_response.rb +3 -1
- data/lib/phrase/models/bitbucket_sync_import_parameters.rb +3 -1
- data/lib/phrase/models/blacklisted_key.rb +3 -1
- data/lib/phrase/models/blacklisted_key_create_parameters.rb +3 -1
- data/lib/phrase/models/blacklisted_key_update_parameters.rb +3 -1
- data/lib/phrase/models/branch.rb +3 -1
- data/lib/phrase/models/branch_create_parameters.rb +3 -1
- data/lib/phrase/models/branch_merge_parameters.rb +3 -1
- data/lib/phrase/models/branch_name.rb +3 -1
- data/lib/phrase/models/branch_update_parameters.rb +3 -1
- data/lib/phrase/models/comment.rb +3 -1
- data/lib/phrase/models/comment_create_parameters.rb +3 -1
- data/lib/phrase/models/comment_mark_read_parameters.rb +3 -1
- data/lib/phrase/models/comment_reaction.rb +3 -1
- data/lib/phrase/models/comment_update_parameters.rb +3 -1
- data/lib/phrase/models/comments_list_parameters.rb +17 -5
- data/lib/phrase/models/current_user.rb +3 -1
- data/lib/phrase/models/distribution.rb +3 -1
- data/lib/phrase/models/distribution_create_parameters.rb +4 -2
- data/lib/phrase/models/distribution_preview.rb +3 -1
- data/lib/phrase/models/distribution_update_parameters.rb +3 -1
- data/lib/phrase/models/document.rb +3 -1
- data/lib/phrase/models/figma_attachment.rb +3 -1
- data/lib/phrase/models/figma_attachment_create_parameters.rb +3 -1
- data/lib/phrase/models/figma_attachment_update_parameters.rb +3 -1
- data/lib/phrase/models/format.rb +3 -1
- data/lib/phrase/models/github_sync_export_parameters.rb +3 -1
- data/lib/phrase/models/github_sync_import_parameters.rb +3 -1
- data/lib/phrase/models/gitlab_sync.rb +3 -1
- data/lib/phrase/models/gitlab_sync_export.rb +3 -1
- data/lib/phrase/models/gitlab_sync_export_parameters.rb +3 -1
- data/lib/phrase/models/gitlab_sync_history.rb +4 -2
- data/lib/phrase/models/{gitlab_sync_history_errors.rb → gitlab_sync_history_errors_inner.rb} +6 -4
- data/lib/phrase/models/gitlab_sync_import_parameters.rb +3 -1
- data/lib/phrase/models/glossary.rb +3 -1
- data/lib/phrase/models/glossary_create_parameters.rb +3 -1
- data/lib/phrase/models/glossary_term.rb +3 -1
- data/lib/phrase/models/glossary_term_create_parameters.rb +3 -1
- data/lib/phrase/models/glossary_term_translation.rb +3 -1
- data/lib/phrase/models/glossary_term_translation_create_parameters.rb +3 -1
- data/lib/phrase/models/glossary_term_translation_update_parameters.rb +3 -1
- data/lib/phrase/models/glossary_term_update_parameters.rb +3 -1
- data/lib/phrase/models/glossary_update_parameters.rb +3 -1
- data/lib/phrase/models/icu.rb +3 -1
- data/lib/phrase/models/icu_skeleton_parameters.rb +3 -1
- data/lib/phrase/models/invitation.rb +4 -2
- data/lib/phrase/models/{inline_response422.rb → invitation_create422_response.rb} +7 -5
- data/lib/phrase/models/{inline_response422_errors.rb → invitation_create422_response_errors_inner.rb} +6 -4
- data/lib/phrase/models/invitation_create_parameters.rb +3 -1
- data/lib/phrase/models/invitation_update_parameters.rb +3 -1
- data/lib/phrase/models/invitation_update_settings_parameters.rb +3 -1
- data/lib/phrase/models/job.rb +3 -1
- data/lib/phrase/models/job_comment.rb +3 -1
- data/lib/phrase/models/job_comment_create_parameters.rb +3 -1
- data/lib/phrase/models/job_comment_update_parameters.rb +3 -1
- data/lib/phrase/models/job_complete_parameters.rb +3 -1
- data/lib/phrase/models/job_create_parameters.rb +3 -1
- data/lib/phrase/models/job_details.rb +4 -3
- data/lib/phrase/models/job_keys_create_parameters.rb +3 -1
- data/lib/phrase/models/job_locale.rb +3 -1
- data/lib/phrase/models/job_locale_complete_parameters.rb +3 -1
- data/lib/phrase/models/job_locale_complete_review_parameters.rb +3 -1
- data/lib/phrase/models/job_locale_reopen_parameters.rb +3 -1
- data/lib/phrase/models/job_locale_update_parameters.rb +3 -1
- data/lib/phrase/models/job_locales_create_parameters.rb +3 -1
- data/lib/phrase/models/job_preview.rb +3 -1
- data/lib/phrase/models/job_reopen_parameters.rb +3 -1
- data/lib/phrase/models/job_start_parameters.rb +3 -1
- data/lib/phrase/models/job_template.rb +3 -1
- data/lib/phrase/models/job_template_create_parameters.rb +3 -1
- data/lib/phrase/models/job_template_details.rb +4 -3
- data/lib/phrase/models/job_template_locale_update_parameters.rb +3 -1
- data/lib/phrase/models/job_template_locales.rb +3 -1
- data/lib/phrase/models/job_template_locales_create_parameters.rb +3 -1
- data/lib/phrase/models/job_template_preview.rb +3 -1
- data/lib/phrase/models/job_template_update_parameters.rb +3 -1
- data/lib/phrase/models/job_update_parameters.rb +3 -1
- data/lib/phrase/models/key_create_parameters.rb +3 -1
- data/lib/phrase/models/key_preview.rb +3 -1
- data/lib/phrase/models/key_update_parameters.rb +3 -1
- data/lib/phrase/models/keys_exclude_parameters.rb +3 -1
- data/lib/phrase/models/keys_include_parameters.rb +3 -1
- data/lib/phrase/models/keys_search_parameters.rb +3 -1
- data/lib/phrase/models/keys_tag_parameters.rb +3 -1
- data/lib/phrase/models/keys_untag_parameters.rb +3 -1
- data/lib/phrase/models/locale.rb +3 -1
- data/lib/phrase/models/locale_create_parameters.rb +3 -1
- data/lib/phrase/models/locale_details.rb +4 -3
- data/lib/phrase/models/locale_preview.rb +3 -1
- data/lib/phrase/models/locale_preview1.rb +3 -1
- data/lib/phrase/models/locale_statistics.rb +3 -1
- data/lib/phrase/models/locale_team_preview.rb +3 -1
- data/lib/phrase/models/locale_update_parameters.rb +3 -1
- data/lib/phrase/models/locale_user_preview.rb +3 -1
- data/lib/phrase/models/member.rb +4 -2
- data/lib/phrase/models/member_project_detail.rb +5 -3
- data/lib/phrase/models/{member_project_detail_project_roles.rb → member_project_detail_project_roles_inner.rb} +6 -4
- data/lib/phrase/models/{member_spaces.rb → member_spaces_inner.rb} +6 -4
- data/lib/phrase/models/member_update_parameters.rb +3 -1
- data/lib/phrase/models/member_update_settings_parameters.rb +3 -1
- data/lib/phrase/models/notification.rb +3 -1
- data/lib/phrase/models/notification_group.rb +3 -1
- data/lib/phrase/models/notification_group_detail.rb +3 -1
- data/lib/phrase/models/order_confirm_parameters.rb +3 -1
- data/lib/phrase/models/order_create_parameters.rb +3 -1
- data/lib/phrase/models/organization_job_template.rb +3 -1
- data/lib/phrase/models/organization_job_template_create_parameters.rb +3 -1
- data/lib/phrase/models/organization_job_template_details.rb +3 -2
- data/lib/phrase/models/organization_job_template_locale_update_parameters.rb +3 -1
- data/lib/phrase/models/organization_job_template_locales_create_parameters.rb +3 -1
- data/lib/phrase/models/organization_job_template_update_parameters.rb +3 -1
- data/lib/phrase/models/project.rb +3 -1
- data/lib/phrase/models/project_create_parameters.rb +3 -1
- data/lib/phrase/models/project_details.rb +4 -3
- data/lib/phrase/models/project_locales.rb +3 -9
- data/lib/phrase/models/project_short.rb +3 -1
- data/lib/phrase/models/project_update_parameters.rb +3 -1
- data/lib/phrase/models/release.rb +3 -1
- data/lib/phrase/models/release_create_parameters.rb +3 -1
- data/lib/phrase/models/release_preview.rb +3 -1
- data/lib/phrase/models/release_update_parameters.rb +3 -1
- data/lib/phrase/models/replies_list_parameters.rb +17 -5
- data/lib/phrase/models/screenshot.rb +3 -1
- data/lib/phrase/models/screenshot_marker.rb +3 -1
- data/lib/phrase/models/screenshot_marker_create_parameters.rb +3 -1
- data/lib/phrase/models/screenshot_marker_update_parameters.rb +3 -1
- data/lib/phrase/models/screenshot_update_parameters.rb +3 -1
- data/lib/phrase/models/search_in_account_parameters.rb +3 -1
- data/lib/phrase/models/space.rb +3 -1
- data/lib/phrase/models/space1.rb +3 -1
- data/lib/phrase/models/space_create_parameters.rb +3 -1
- data/lib/phrase/models/space_update_parameters.rb +3 -1
- data/lib/phrase/models/spaces_projects_create_parameters.rb +3 -1
- data/lib/phrase/models/styleguide.rb +3 -1
- data/lib/phrase/models/styleguide_create_parameters.rb +3 -1
- data/lib/phrase/models/styleguide_details.rb +4 -3
- data/lib/phrase/models/styleguide_preview.rb +3 -1
- data/lib/phrase/models/styleguide_update_parameters.rb +3 -1
- data/lib/phrase/models/subscription.rb +3 -1
- data/lib/phrase/models/tag.rb +3 -1
- data/lib/phrase/models/tag_create_parameters.rb +3 -1
- data/lib/phrase/models/tag_with_stats.rb +4 -3
- data/lib/phrase/models/tag_with_stats1_statistics.rb +3 -1
- data/lib/phrase/models/tag_with_stats1_statistics1.rb +3 -1
- data/lib/phrase/models/team.rb +3 -1
- data/lib/phrase/models/team_create_parameters.rb +3 -1
- data/lib/phrase/models/team_detail.rb +3 -1
- data/lib/phrase/models/team_short.rb +3 -1
- data/lib/phrase/models/team_update_parameters.rb +3 -1
- data/lib/phrase/models/teams_projects_create_parameters.rb +3 -1
- data/lib/phrase/models/teams_spaces_create_parameters.rb +3 -1
- data/lib/phrase/models/teams_users_create_parameters.rb +3 -1
- data/lib/phrase/models/translation.rb +3 -1
- data/lib/phrase/models/translation_create_parameters.rb +3 -1
- data/lib/phrase/models/translation_details.rb +4 -3
- data/lib/phrase/models/translation_exclude_parameters.rb +3 -1
- data/lib/phrase/models/translation_include_parameters.rb +3 -1
- data/lib/phrase/models/translation_key.rb +3 -1
- data/lib/phrase/models/translation_key_details.rb +4 -3
- data/lib/phrase/models/translation_order.rb +3 -1
- data/lib/phrase/models/translation_review_parameters.rb +3 -1
- data/lib/phrase/models/translation_unverify_parameters.rb +3 -1
- data/lib/phrase/models/translation_update_parameters.rb +3 -1
- data/lib/phrase/models/translation_verify_parameters.rb +3 -1
- data/lib/phrase/models/translation_version.rb +3 -1
- data/lib/phrase/models/translation_version_with_user.rb +4 -3
- data/lib/phrase/models/translations_exclude_parameters.rb +3 -1
- data/lib/phrase/models/translations_include_parameters.rb +3 -1
- data/lib/phrase/models/translations_review_parameters.rb +3 -1
- data/lib/phrase/models/translations_search_parameters.rb +3 -1
- data/lib/phrase/models/translations_unverify_parameters.rb +3 -1
- data/lib/phrase/models/translations_verify_parameters.rb +3 -1
- data/lib/phrase/models/upload.rb +3 -1
- data/lib/phrase/models/upload_summary.rb +3 -1
- data/lib/phrase/models/user.rb +3 -1
- data/lib/phrase/models/user_preview.rb +3 -1
- data/lib/phrase/models/variable.rb +3 -1
- data/lib/phrase/models/variable_create_parameters.rb +3 -1
- data/lib/phrase/models/variable_update_parameters.rb +3 -1
- data/lib/phrase/models/webhook.rb +3 -1
- data/lib/phrase/models/webhook_create_parameters.rb +3 -1
- data/lib/phrase/models/webhook_delivery.rb +3 -1
- data/lib/phrase/models/webhook_update_parameters.rb +3 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +5 -20
- data/spec/api/comment_replies_api_spec.rb +1 -0
- data/spec/api/comments_api_spec.rb +1 -0
- data/spec/api/job_comments_api_spec.rb +1 -0
- data/spec/models/comments_list_parameters_spec.rb +6 -0
- data/spec/models/{gitlab_sync_history_errors_spec.rb → gitlab_sync_history_errors_inner_spec.rb} +6 -6
- data/spec/models/{inline_response422_errors_spec.rb → invitation_create422_response_errors_inner_spec.rb} +6 -6
- data/spec/models/{inline_response422_spec.rb → invitation_create422_response_spec.rb} +6 -6
- data/spec/models/{member_project_detail_project_roles_spec.rb → member_project_detail_project_roles_inner_spec.rb} +6 -6
- data/spec/models/{member_spaces_spec.rb → member_spaces_inner_spec.rb} +6 -6
- data/spec/models/replies_list_parameters_spec.rb +6 -0
- metadata +226 -286
- data/docs/AccountDetails1.md +0 -19
- data/docs/AuthorizationWithToken1.md +0 -17
- data/docs/JobDetails1.md +0 -25
- data/docs/JobTemplateDetails1.md +0 -21
- data/docs/LocaleDetails1.md +0 -17
- data/docs/ProjectDetails1.md +0 -19
- data/docs/ProjectLocales1.md +0 -17
- data/docs/ProjectMemberSpecific.md +0 -27
- data/docs/ScreenshotCreateParameters.md +0 -23
- data/docs/StyleguideDetails1.md +0 -41
- data/docs/TagWithStats1.md +0 -17
- data/docs/TranslationDetails1.md +0 -19
- data/docs/TranslationKeyDetails1.md +0 -33
- data/docs/TranslationVersionWithUser1.md +0 -17
- data/docs/UploadCreateParameters.md +0 -47
- data/lib/phrase/models/account_details1.rb +0 -203
- data/lib/phrase/models/authorization_with_token1.rb +0 -194
- data/lib/phrase/models/job_details1.rb +0 -234
- data/lib/phrase/models/job_template_details1.rb +0 -214
- data/lib/phrase/models/locale_details1.rb +0 -194
- data/lib/phrase/models/project_details1.rb +0 -203
- data/lib/phrase/models/project_locales1.rb +0 -196
- data/lib/phrase/models/project_member_specific.rb +0 -239
- data/lib/phrase/models/screenshot_create_parameters.rb +0 -225
- data/lib/phrase/models/styleguide_details1.rb +0 -302
- data/lib/phrase/models/tag_with_stats1.rb +0 -196
- data/lib/phrase/models/translation_details1.rb +0 -203
- data/lib/phrase/models/translation_key_details1.rb +0 -266
- data/lib/phrase/models/translation_version_with_user1.rb +0 -194
- data/lib/phrase/models/upload_create_parameters.rb +0 -347
- data/spec/models/account_details1_spec.rb +0 -35
- data/spec/models/authorization_with_token1_spec.rb +0 -29
- data/spec/models/job_details1_spec.rb +0 -53
- data/spec/models/job_template_details1_spec.rb +0 -41
- data/spec/models/locale_details1_spec.rb +0 -29
- data/spec/models/project_details1_spec.rb +0 -35
- data/spec/models/project_locales1_spec.rb +0 -29
- data/spec/models/project_member_specific_spec.rb +0 -59
- data/spec/models/screenshot_create_parameters_spec.rb +0 -47
- data/spec/models/styleguide_details1_spec.rb +0 -101
- data/spec/models/tag_with_stats1_spec.rb +0 -29
- data/spec/models/translation_details1_spec.rb +0 -35
- data/spec/models/translation_key_details1_spec.rb +0 -77
- data/spec/models/translation_version_with_user1_spec.rb +0 -29
- data/spec/models/upload_create_parameters_spec.rb +0 -119
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -168,6 +168,8 @@ module Phrase
|
|
168
168
|
DateTime.parse(value)
|
169
169
|
when :Date
|
170
170
|
Date.parse(value)
|
171
|
+
when :Time
|
172
|
+
Time.parse(value)
|
171
173
|
when :String
|
172
174
|
value.to_s
|
173
175
|
when :Integer
|
@@ -221,7 +223,7 @@ module Phrase
|
|
221
223
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
222
224
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
223
225
|
end
|
224
|
-
|
226
|
+
|
225
227
|
hash[param] = _to_hash(value)
|
226
228
|
end
|
227
229
|
hash
|
@@ -140,6 +140,8 @@ module Phrase
|
|
140
140
|
DateTime.parse(value)
|
141
141
|
when :Date
|
142
142
|
Date.parse(value)
|
143
|
+
when :Time
|
144
|
+
Time.parse(value)
|
143
145
|
when :String
|
144
146
|
value.to_s
|
145
147
|
when :Integer
|
@@ -193,7 +195,7 @@ module Phrase
|
|
193
195
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
194
196
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
195
197
|
end
|
196
|
-
|
198
|
+
|
197
199
|
hash[param] = _to_hash(value)
|
198
200
|
end
|
199
201
|
hash
|
@@ -63,8 +63,7 @@ module Phrase
|
|
63
63
|
# List of class defined in allOf (OpenAPI v3)
|
64
64
|
def self.openapi_all_of
|
65
65
|
[
|
66
|
-
:'JobTemplate'
|
67
|
-
:'JobTemplateDetails1'
|
66
|
+
:'JobTemplate'
|
68
67
|
]
|
69
68
|
end
|
70
69
|
|
@@ -205,6 +204,8 @@ module Phrase
|
|
205
204
|
DateTime.parse(value)
|
206
205
|
when :Date
|
207
206
|
Date.parse(value)
|
207
|
+
when :Time
|
208
|
+
Time.parse(value)
|
208
209
|
when :String
|
209
210
|
value.to_s
|
210
211
|
when :Integer
|
@@ -258,7 +259,7 @@ module Phrase
|
|
258
259
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
259
260
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
260
261
|
end
|
261
|
-
|
262
|
+
|
262
263
|
hash[param] = _to_hash(value)
|
263
264
|
end
|
264
265
|
hash
|
@@ -173,6 +173,8 @@ module Phrase
|
|
173
173
|
DateTime.parse(value)
|
174
174
|
when :Date
|
175
175
|
Date.parse(value)
|
176
|
+
when :Time
|
177
|
+
Time.parse(value)
|
176
178
|
when :String
|
177
179
|
value.to_s
|
178
180
|
when :Integer
|
@@ -226,7 +228,7 @@ module Phrase
|
|
226
228
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
227
229
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
228
230
|
end
|
229
|
-
|
231
|
+
|
230
232
|
hash[param] = _to_hash(value)
|
231
233
|
end
|
232
234
|
hash
|
@@ -154,6 +154,8 @@ module Phrase
|
|
154
154
|
DateTime.parse(value)
|
155
155
|
when :Date
|
156
156
|
Date.parse(value)
|
157
|
+
when :Time
|
158
|
+
Time.parse(value)
|
157
159
|
when :String
|
158
160
|
value.to_s
|
159
161
|
when :Integer
|
@@ -207,7 +209,7 @@ module Phrase
|
|
207
209
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
208
210
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
209
211
|
end
|
210
|
-
|
212
|
+
|
211
213
|
hash[param] = _to_hash(value)
|
212
214
|
end
|
213
215
|
hash
|
@@ -178,6 +178,8 @@ module Phrase
|
|
178
178
|
DateTime.parse(value)
|
179
179
|
when :Date
|
180
180
|
Date.parse(value)
|
181
|
+
when :Time
|
182
|
+
Time.parse(value)
|
181
183
|
when :String
|
182
184
|
value.to_s
|
183
185
|
when :Integer
|
@@ -231,7 +233,7 @@ module Phrase
|
|
231
233
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
232
234
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
233
235
|
end
|
234
|
-
|
236
|
+
|
235
237
|
hash[param] = _to_hash(value)
|
236
238
|
end
|
237
239
|
hash
|
@@ -123,6 +123,8 @@ module Phrase
|
|
123
123
|
DateTime.parse(value)
|
124
124
|
when :Date
|
125
125
|
Date.parse(value)
|
126
|
+
when :Time
|
127
|
+
Time.parse(value)
|
126
128
|
when :String
|
127
129
|
value.to_s
|
128
130
|
when :Integer
|
@@ -176,7 +178,7 @@ module Phrase
|
|
176
178
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
177
179
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
178
180
|
end
|
179
|
-
|
181
|
+
|
180
182
|
hash[param] = _to_hash(value)
|
181
183
|
end
|
182
184
|
hash
|
@@ -140,6 +140,8 @@ module Phrase
|
|
140
140
|
DateTime.parse(value)
|
141
141
|
when :Date
|
142
142
|
Date.parse(value)
|
143
|
+
when :Time
|
144
|
+
Time.parse(value)
|
143
145
|
when :String
|
144
146
|
value.to_s
|
145
147
|
when :Integer
|
@@ -193,7 +195,7 @@ module Phrase
|
|
193
195
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
194
196
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
195
197
|
end
|
196
|
-
|
198
|
+
|
197
199
|
hash[param] = _to_hash(value)
|
198
200
|
end
|
199
201
|
hash
|
@@ -155,6 +155,8 @@ module Phrase
|
|
155
155
|
DateTime.parse(value)
|
156
156
|
when :Date
|
157
157
|
Date.parse(value)
|
158
|
+
when :Time
|
159
|
+
Time.parse(value)
|
158
160
|
when :String
|
159
161
|
value.to_s
|
160
162
|
when :Integer
|
@@ -208,7 +210,7 @@ module Phrase
|
|
208
210
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
209
211
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
210
212
|
end
|
211
|
-
|
213
|
+
|
212
214
|
hash[param] = _to_hash(value)
|
213
215
|
end
|
214
216
|
hash
|
@@ -265,6 +265,8 @@ module Phrase
|
|
265
265
|
DateTime.parse(value)
|
266
266
|
when :Date
|
267
267
|
Date.parse(value)
|
268
|
+
when :Time
|
269
|
+
Time.parse(value)
|
268
270
|
when :String
|
269
271
|
value.to_s
|
270
272
|
when :Integer
|
@@ -318,7 +320,7 @@ module Phrase
|
|
318
320
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
319
321
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
320
322
|
end
|
321
|
-
|
323
|
+
|
322
324
|
hash[param] = _to_hash(value)
|
323
325
|
end
|
324
326
|
hash
|
@@ -132,6 +132,8 @@ module Phrase
|
|
132
132
|
DateTime.parse(value)
|
133
133
|
when :Date
|
134
134
|
Date.parse(value)
|
135
|
+
when :Time
|
136
|
+
Time.parse(value)
|
135
137
|
when :String
|
136
138
|
value.to_s
|
137
139
|
when :Integer
|
@@ -185,7 +187,7 @@ module Phrase
|
|
185
187
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
186
188
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
187
189
|
end
|
188
|
-
|
190
|
+
|
189
191
|
hash[param] = _to_hash(value)
|
190
192
|
end
|
191
193
|
hash
|
@@ -255,6 +255,8 @@ module Phrase
|
|
255
255
|
DateTime.parse(value)
|
256
256
|
when :Date
|
257
257
|
Date.parse(value)
|
258
|
+
when :Time
|
259
|
+
Time.parse(value)
|
258
260
|
when :String
|
259
261
|
value.to_s
|
260
262
|
when :Integer
|
@@ -308,7 +310,7 @@ module Phrase
|
|
308
310
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
309
311
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
310
312
|
end
|
311
|
-
|
313
|
+
|
312
314
|
hash[param] = _to_hash(value)
|
313
315
|
end
|
314
316
|
hash
|
@@ -145,6 +145,8 @@ module Phrase
|
|
145
145
|
DateTime.parse(value)
|
146
146
|
when :Date
|
147
147
|
Date.parse(value)
|
148
|
+
when :Time
|
149
|
+
Time.parse(value)
|
148
150
|
when :String
|
149
151
|
value.to_s
|
150
152
|
when :Integer
|
@@ -198,7 +200,7 @@ module Phrase
|
|
198
200
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
201
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
202
|
end
|
201
|
-
|
203
|
+
|
202
204
|
hash[param] = _to_hash(value)
|
203
205
|
end
|
204
206
|
hash
|
@@ -145,6 +145,8 @@ module Phrase
|
|
145
145
|
DateTime.parse(value)
|
146
146
|
when :Date
|
147
147
|
Date.parse(value)
|
148
|
+
when :Time
|
149
|
+
Time.parse(value)
|
148
150
|
when :String
|
149
151
|
value.to_s
|
150
152
|
when :Integer
|
@@ -198,7 +200,7 @@ module Phrase
|
|
198
200
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
201
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
202
|
end
|
201
|
-
|
203
|
+
|
202
204
|
hash[param] = _to_hash(value)
|
203
205
|
end
|
204
206
|
hash
|
@@ -155,6 +155,8 @@ module Phrase
|
|
155
155
|
DateTime.parse(value)
|
156
156
|
when :Date
|
157
157
|
Date.parse(value)
|
158
|
+
when :Time
|
159
|
+
Time.parse(value)
|
158
160
|
when :String
|
159
161
|
value.to_s
|
160
162
|
when :Integer
|
@@ -208,7 +210,7 @@ module Phrase
|
|
208
210
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
209
211
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
210
212
|
end
|
211
|
-
|
213
|
+
|
212
214
|
hash[param] = _to_hash(value)
|
213
215
|
end
|
214
216
|
hash
|
@@ -145,6 +145,8 @@ module Phrase
|
|
145
145
|
DateTime.parse(value)
|
146
146
|
when :Date
|
147
147
|
Date.parse(value)
|
148
|
+
when :Time
|
149
|
+
Time.parse(value)
|
148
150
|
when :String
|
149
151
|
value.to_s
|
150
152
|
when :Integer
|
@@ -198,7 +200,7 @@ module Phrase
|
|
198
200
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
201
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
202
|
end
|
201
|
-
|
203
|
+
|
202
204
|
hash[param] = _to_hash(value)
|
203
205
|
end
|
204
206
|
hash
|
@@ -145,6 +145,8 @@ module Phrase
|
|
145
145
|
DateTime.parse(value)
|
146
146
|
when :Date
|
147
147
|
Date.parse(value)
|
148
|
+
when :Time
|
149
|
+
Time.parse(value)
|
148
150
|
when :String
|
149
151
|
value.to_s
|
150
152
|
when :Integer
|
@@ -198,7 +200,7 @@ module Phrase
|
|
198
200
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
201
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
202
|
end
|
201
|
-
|
203
|
+
|
202
204
|
hash[param] = _to_hash(value)
|
203
205
|
end
|
204
206
|
hash
|
data/lib/phrase/models/locale.rb
CHANGED
@@ -206,6 +206,8 @@ module Phrase
|
|
206
206
|
DateTime.parse(value)
|
207
207
|
when :Date
|
208
208
|
Date.parse(value)
|
209
|
+
when :Time
|
210
|
+
Time.parse(value)
|
209
211
|
when :String
|
210
212
|
value.to_s
|
211
213
|
when :Integer
|
@@ -259,7 +261,7 @@ module Phrase
|
|
259
261
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
260
262
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
261
263
|
end
|
262
|
-
|
264
|
+
|
263
265
|
hash[param] = _to_hash(value)
|
264
266
|
end
|
265
267
|
hash
|
@@ -215,6 +215,8 @@ module Phrase
|
|
215
215
|
DateTime.parse(value)
|
216
216
|
when :Date
|
217
217
|
Date.parse(value)
|
218
|
+
when :Time
|
219
|
+
Time.parse(value)
|
218
220
|
when :String
|
219
221
|
value.to_s
|
220
222
|
when :Integer
|
@@ -268,7 +270,7 @@ module Phrase
|
|
268
270
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
269
271
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
270
272
|
end
|
271
|
-
|
273
|
+
|
272
274
|
hash[param] = _to_hash(value)
|
273
275
|
end
|
274
276
|
hash
|
@@ -71,8 +71,7 @@ module Phrase
|
|
71
71
|
# List of class defined in allOf (OpenAPI v3)
|
72
72
|
def self.openapi_all_of
|
73
73
|
[
|
74
|
-
:'Locale'
|
75
|
-
:'LocaleDetails1'
|
74
|
+
:'Locale'
|
76
75
|
]
|
77
76
|
end
|
78
77
|
|
@@ -223,6 +222,8 @@ module Phrase
|
|
223
222
|
DateTime.parse(value)
|
224
223
|
when :Date
|
225
224
|
Date.parse(value)
|
225
|
+
when :Time
|
226
|
+
Time.parse(value)
|
226
227
|
when :String
|
227
228
|
value.to_s
|
228
229
|
when :Integer
|
@@ -276,7 +277,7 @@ module Phrase
|
|
276
277
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
277
278
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
278
279
|
end
|
279
|
-
|
280
|
+
|
280
281
|
hash[param] = _to_hash(value)
|
281
282
|
end
|
282
283
|
hash
|
@@ -132,6 +132,8 @@ module Phrase
|
|
132
132
|
DateTime.parse(value)
|
133
133
|
when :Date
|
134
134
|
Date.parse(value)
|
135
|
+
when :Time
|
136
|
+
Time.parse(value)
|
135
137
|
when :String
|
136
138
|
value.to_s
|
137
139
|
when :Integer
|
@@ -185,7 +187,7 @@ module Phrase
|
|
185
187
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
186
188
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
187
189
|
end
|
188
|
-
|
190
|
+
|
189
191
|
hash[param] = _to_hash(value)
|
190
192
|
end
|
191
193
|
hash
|
@@ -141,6 +141,8 @@ module Phrase
|
|
141
141
|
DateTime.parse(value)
|
142
142
|
when :Date
|
143
143
|
Date.parse(value)
|
144
|
+
when :Time
|
145
|
+
Time.parse(value)
|
144
146
|
when :String
|
145
147
|
value.to_s
|
146
148
|
when :Integer
|
@@ -194,7 +196,7 @@ module Phrase
|
|
194
196
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
197
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
196
198
|
end
|
197
|
-
|
199
|
+
|
198
200
|
hash[param] = _to_hash(value)
|
199
201
|
end
|
200
202
|
hash
|
@@ -168,6 +168,8 @@ module Phrase
|
|
168
168
|
DateTime.parse(value)
|
169
169
|
when :Date
|
170
170
|
Date.parse(value)
|
171
|
+
when :Time
|
172
|
+
Time.parse(value)
|
171
173
|
when :String
|
172
174
|
value.to_s
|
173
175
|
when :Integer
|
@@ -221,7 +223,7 @@ module Phrase
|
|
221
223
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
222
224
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
223
225
|
end
|
224
|
-
|
226
|
+
|
225
227
|
hash[param] = _to_hash(value)
|
226
228
|
end
|
227
229
|
hash
|
@@ -132,6 +132,8 @@ module Phrase
|
|
132
132
|
DateTime.parse(value)
|
133
133
|
when :Date
|
134
134
|
Date.parse(value)
|
135
|
+
when :Time
|
136
|
+
Time.parse(value)
|
135
137
|
when :String
|
136
138
|
value.to_s
|
137
139
|
when :Integer
|
@@ -185,7 +187,7 @@ module Phrase
|
|
185
187
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
186
188
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
187
189
|
end
|
188
|
-
|
190
|
+
|
189
191
|
hash[param] = _to_hash(value)
|
190
192
|
end
|
191
193
|
hash
|
@@ -215,6 +215,8 @@ module Phrase
|
|
215
215
|
DateTime.parse(value)
|
216
216
|
when :Date
|
217
217
|
Date.parse(value)
|
218
|
+
when :Time
|
219
|
+
Time.parse(value)
|
218
220
|
when :String
|
219
221
|
value.to_s
|
220
222
|
when :Integer
|
@@ -268,7 +270,7 @@ module Phrase
|
|
268
270
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
269
271
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
270
272
|
end
|
271
|
-
|
273
|
+
|
272
274
|
hash[param] = _to_hash(value)
|
273
275
|
end
|
274
276
|
hash
|
@@ -141,6 +141,8 @@ module Phrase
|
|
141
141
|
DateTime.parse(value)
|
142
142
|
when :Date
|
143
143
|
Date.parse(value)
|
144
|
+
when :Time
|
145
|
+
Time.parse(value)
|
144
146
|
when :String
|
145
147
|
value.to_s
|
146
148
|
when :Integer
|
@@ -194,7 +196,7 @@ module Phrase
|
|
194
196
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
197
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
196
198
|
end
|
197
|
-
|
199
|
+
|
198
200
|
hash[param] = _to_hash(value)
|
199
201
|
end
|
200
202
|
hash
|
data/lib/phrase/models/member.rb
CHANGED
@@ -54,7 +54,7 @@ module Phrase
|
|
54
54
|
:'permissions' => :'Object',
|
55
55
|
:'default_locale_codes' => :'Array<String>',
|
56
56
|
:'teams' => :'Array<TeamShort>',
|
57
|
-
:'spaces' => :'Array<
|
57
|
+
:'spaces' => :'Array<MemberSpacesInner>'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -212,6 +212,8 @@ module Phrase
|
|
212
212
|
DateTime.parse(value)
|
213
213
|
when :Date
|
214
214
|
Date.parse(value)
|
215
|
+
when :Time
|
216
|
+
Time.parse(value)
|
215
217
|
when :String
|
216
218
|
value.to_s
|
217
219
|
when :Integer
|
@@ -265,7 +267,7 @@ module Phrase
|
|
265
267
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
266
268
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
267
269
|
end
|
268
|
-
|
270
|
+
|
269
271
|
hash[param] = _to_hash(value)
|
270
272
|
end
|
271
273
|
hash
|
@@ -49,8 +49,8 @@ module Phrase
|
|
49
49
|
:'permissions' => :'Object',
|
50
50
|
:'locale_ids' => :'Array<String>',
|
51
51
|
:'default_locale_codes' => :'Array<String>',
|
52
|
-
:'spaces' => :'Array<
|
53
|
-
:'project_roles' => :'Array<
|
52
|
+
:'spaces' => :'Array<MemberSpacesInner>',
|
53
|
+
:'project_roles' => :'Array<MemberProjectDetailProjectRolesInner>'
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
@@ -205,6 +205,8 @@ module Phrase
|
|
205
205
|
DateTime.parse(value)
|
206
206
|
when :Date
|
207
207
|
Date.parse(value)
|
208
|
+
when :Time
|
209
|
+
Time.parse(value)
|
208
210
|
when :String
|
209
211
|
value.to_s
|
210
212
|
when :Integer
|
@@ -258,7 +260,7 @@ module Phrase
|
|
258
260
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
259
261
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
260
262
|
end
|
261
|
-
|
263
|
+
|
262
264
|
hash[param] = _to_hash(value)
|
263
265
|
end
|
264
266
|
hash
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module Phrase
|
4
|
-
class
|
4
|
+
class MemberProjectDetailProjectRolesInner
|
5
5
|
attr_accessor :project_id
|
6
6
|
|
7
7
|
attr_accessor :role
|
@@ -32,13 +32,13 @@ module Phrase
|
|
32
32
|
# @param [Hash] attributes Model attributes in the form of hash
|
33
33
|
def initialize(attributes = {})
|
34
34
|
if (!attributes.is_a?(Hash))
|
35
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::
|
35
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::MemberProjectDetailProjectRolesInner` initialize method"
|
36
36
|
end
|
37
37
|
|
38
38
|
# check to see if the attribute exists and convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
40
40
|
if (!self.class.attribute_map.key?(k.to_sym))
|
41
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::
|
41
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::MemberProjectDetailProjectRolesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
42
42
|
end
|
43
43
|
h[k.to_sym] = v
|
44
44
|
}
|
@@ -123,6 +123,8 @@ module Phrase
|
|
123
123
|
DateTime.parse(value)
|
124
124
|
when :Date
|
125
125
|
Date.parse(value)
|
126
|
+
when :Time
|
127
|
+
Time.parse(value)
|
126
128
|
when :String
|
127
129
|
value.to_s
|
128
130
|
when :Integer
|
@@ -176,7 +178,7 @@ module Phrase
|
|
176
178
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
177
179
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
178
180
|
end
|
179
|
-
|
181
|
+
|
180
182
|
hash[param] = _to_hash(value)
|
181
183
|
end
|
182
184
|
hash
|