From 0e436db9bd7ecb6d23e4d2cd6a8ff9874a60a30b Mon Sep 17 00:00:00 2001 From: Julian Vennen Date: Wed, 17 Jul 2024 14:35:52 +0200 Subject: [PATCH] Update OpenAPI Generator --- lib/Api/APIKeysApi.php | 2 +- lib/Api/AuthenticationApi.php | 2 +- lib/Api/PagesApi.php | 2 +- lib/Api/PermissionsApi.php | 2 +- lib/Api/ProjectsApi.php | 2 +- lib/Api/UsersApi.php | 2 +- lib/Api/VersionsApi.php | 2 +- lib/ApiException.php | 2 +- lib/Configuration.php | 8 +- lib/HeaderSelector.php | 2 +- lib/Model/ApiKey.php | 2 +- lib/Model/ApiSession.php | 2 +- lib/Model/Category.php | 2 +- lib/Model/ChannelFlag.php | 2 +- lib/Model/Color.php | 2 +- lib/Model/CompactRole.php | 2 +- lib/Model/CreateAPIKeyForm.php | 2 +- lib/Model/DayProjectStats.php | 2 +- lib/Model/FileInfo.php | 2 +- lib/Model/Link.php | 2 +- lib/Model/LinkSection.php | 2 +- lib/Model/ModelInterface.php | 2 +- lib/Model/MultipartFileOrUrl.php | 2 +- lib/Model/NamedPermission.php | 2 +- lib/Model/PageEditForm.php | 2 +- lib/Model/PaginatedResultProject.php | 2 +- lib/Model/PaginatedResultProjectCompact.php | 2 +- lib/Model/PaginatedResultProjectMember.php | 2 +- lib/Model/PaginatedResultUser.php | 2 +- lib/Model/PaginatedResultVersion.php | 2 +- lib/Model/Pagination.php | 2 +- lib/Model/PermissionCheck.php | 2 +- lib/Model/PermissionType.php | 2 +- lib/Model/PinnedStatus.php | 2 +- lib/Model/Platform.php | 2 +- lib/Model/PlatformVersionDownload.php | 2 +- lib/Model/PluginDependency.php | 2 +- lib/Model/Project.php | 2 +- lib/Model/ProjectChannel.php | 2 +- lib/Model/ProjectCompact.php | 2 +- lib/Model/ProjectDonationSettings.php | 2 +- lib/Model/ProjectLicense.php | 2 +- lib/Model/ProjectMember.php | 2 +- lib/Model/ProjectNamespace.php | 2 +- lib/Model/ProjectSettings.php | 2 +- lib/Model/ProjectSortingStrategy.php | 2 +- lib/Model/ProjectStats.php | 2 +- lib/Model/RequestPagination.php | 2 +- lib/Model/ReviewState.php | 2 +- lib/Model/StringContent.php | 2 +- lib/Model/UploadedVersion.php | 2 +- lib/Model/User.php | 2 +- lib/Model/UserActions.php | 2 +- lib/Model/UserNameChange.php | 2 +- lib/Model/UserPermissions.php | 2 +- lib/Model/Version.php | 2 +- lib/Model/VersionStats.php | 2 +- lib/Model/VersionUpload.php | 2 +- lib/Model/Visibility.php | 2 +- lib/ObjectSerializer.php | 81 ++++++++++++++++----- 60 files changed, 123 insertions(+), 82 deletions(-) diff --git a/lib/Api/APIKeysApi.php b/lib/Api/APIKeysApi.php index b8456b8..e78ee7b 100644 --- a/lib/Api/APIKeysApi.php +++ b/lib/Api/APIKeysApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Api/AuthenticationApi.php b/lib/Api/AuthenticationApi.php index 760e35e..14c31ee 100644 --- a/lib/Api/AuthenticationApi.php +++ b/lib/Api/AuthenticationApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Api/PagesApi.php b/lib/Api/PagesApi.php index 229356c..ae3f084 100644 --- a/lib/Api/PagesApi.php +++ b/lib/Api/PagesApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Api/PermissionsApi.php b/lib/Api/PermissionsApi.php index ddc298a..572d4e0 100644 --- a/lib/Api/PermissionsApi.php +++ b/lib/Api/PermissionsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Api/ProjectsApi.php b/lib/Api/ProjectsApi.php index afbe144..1261bcc 100644 --- a/lib/Api/ProjectsApi.php +++ b/lib/Api/ProjectsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Api/UsersApi.php b/lib/Api/UsersApi.php index bd48c5a..fec4d08 100644 --- a/lib/Api/UsersApi.php +++ b/lib/Api/UsersApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Api/VersionsApi.php b/lib/Api/VersionsApi.php index 8cca6c6..8cb471d 100644 --- a/lib/Api/VersionsApi.php +++ b/lib/Api/VersionsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/ApiException.php b/lib/ApiException.php index 2d058c8..bf3d9d7 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Configuration.php b/lib/Configuration.php index a831973..21a5654 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** @@ -494,11 +494,11 @@ public static function getHostString(array $hostSettings, $hostIndex, array $var } // check array index out of bound - if ($hostIndex < 0 || $hostIndex >= count($hostsSettings)) { - throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostsSettings)); + if ($hostIndex < 0 || $hostIndex >= count($hostSettings)) { + throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostSettings)); } - $host = $hostsSettings[$hostIndex]; + $host = $hostSettings[$hostIndex]; $url = $host["url"]; // go through variable and assign a value diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 6652b70..dc3df55 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ApiKey.php b/lib/Model/ApiKey.php index 0e95629..fb9e50a 100644 --- a/lib/Model/ApiKey.php +++ b/lib/Model/ApiKey.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ApiSession.php b/lib/Model/ApiSession.php index 98457bb..bd6ac5f 100644 --- a/lib/Model/ApiSession.php +++ b/lib/Model/ApiSession.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/Category.php b/lib/Model/Category.php index 1b3118f..bc2181f 100644 --- a/lib/Model/Category.php +++ b/lib/Model/Category.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ChannelFlag.php b/lib/Model/ChannelFlag.php index e8e2808..af5e1ca 100644 --- a/lib/Model/ChannelFlag.php +++ b/lib/Model/ChannelFlag.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/Color.php b/lib/Model/Color.php index 522ea2c..78aeed0 100644 --- a/lib/Model/Color.php +++ b/lib/Model/Color.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/CompactRole.php b/lib/Model/CompactRole.php index 78cfc05..2eddc28 100644 --- a/lib/Model/CompactRole.php +++ b/lib/Model/CompactRole.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/CreateAPIKeyForm.php b/lib/Model/CreateAPIKeyForm.php index ee7f913..b8a9ecb 100644 --- a/lib/Model/CreateAPIKeyForm.php +++ b/lib/Model/CreateAPIKeyForm.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/DayProjectStats.php b/lib/Model/DayProjectStats.php index b963978..4b2644e 100644 --- a/lib/Model/DayProjectStats.php +++ b/lib/Model/DayProjectStats.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/FileInfo.php b/lib/Model/FileInfo.php index 007f1f3..fed507a 100644 --- a/lib/Model/FileInfo.php +++ b/lib/Model/FileInfo.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/Link.php b/lib/Model/Link.php index e0f214d..544b89c 100644 --- a/lib/Model/Link.php +++ b/lib/Model/Link.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/LinkSection.php b/lib/Model/LinkSection.php index 08ee8f2..de7447c 100644 --- a/lib/Model/LinkSection.php +++ b/lib/Model/LinkSection.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index 9bb473d..815f022 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/MultipartFileOrUrl.php b/lib/Model/MultipartFileOrUrl.php index e4a6044..17759e0 100644 --- a/lib/Model/MultipartFileOrUrl.php +++ b/lib/Model/MultipartFileOrUrl.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/NamedPermission.php b/lib/Model/NamedPermission.php index 0b46c13..17d7db8 100644 --- a/lib/Model/NamedPermission.php +++ b/lib/Model/NamedPermission.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PageEditForm.php b/lib/Model/PageEditForm.php index b8e6e0a..94d87c2 100644 --- a/lib/Model/PageEditForm.php +++ b/lib/Model/PageEditForm.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PaginatedResultProject.php b/lib/Model/PaginatedResultProject.php index 7756c85..aa3a99f 100644 --- a/lib/Model/PaginatedResultProject.php +++ b/lib/Model/PaginatedResultProject.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PaginatedResultProjectCompact.php b/lib/Model/PaginatedResultProjectCompact.php index 602eed3..00cdb1d 100644 --- a/lib/Model/PaginatedResultProjectCompact.php +++ b/lib/Model/PaginatedResultProjectCompact.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PaginatedResultProjectMember.php b/lib/Model/PaginatedResultProjectMember.php index 1a9d380..5b2b378 100644 --- a/lib/Model/PaginatedResultProjectMember.php +++ b/lib/Model/PaginatedResultProjectMember.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PaginatedResultUser.php b/lib/Model/PaginatedResultUser.php index 6872f2a..47dd10b 100644 --- a/lib/Model/PaginatedResultUser.php +++ b/lib/Model/PaginatedResultUser.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PaginatedResultVersion.php b/lib/Model/PaginatedResultVersion.php index 7d0433e..a59fe34 100644 --- a/lib/Model/PaginatedResultVersion.php +++ b/lib/Model/PaginatedResultVersion.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/Pagination.php b/lib/Model/Pagination.php index 6be92c8..ff3d3dd 100644 --- a/lib/Model/Pagination.php +++ b/lib/Model/Pagination.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PermissionCheck.php b/lib/Model/PermissionCheck.php index 3866c01..09846c3 100644 --- a/lib/Model/PermissionCheck.php +++ b/lib/Model/PermissionCheck.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PermissionType.php b/lib/Model/PermissionType.php index 86d97f6..04ba9c0 100644 --- a/lib/Model/PermissionType.php +++ b/lib/Model/PermissionType.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PinnedStatus.php b/lib/Model/PinnedStatus.php index 337cb33..bbde676 100644 --- a/lib/Model/PinnedStatus.php +++ b/lib/Model/PinnedStatus.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/Platform.php b/lib/Model/Platform.php index d2ce1c1..7a42ce4 100644 --- a/lib/Model/Platform.php +++ b/lib/Model/Platform.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PlatformVersionDownload.php b/lib/Model/PlatformVersionDownload.php index 0f5b149..e350e90 100644 --- a/lib/Model/PlatformVersionDownload.php +++ b/lib/Model/PlatformVersionDownload.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/PluginDependency.php b/lib/Model/PluginDependency.php index ed73e05..7a0d9a2 100644 --- a/lib/Model/PluginDependency.php +++ b/lib/Model/PluginDependency.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/Project.php b/lib/Model/Project.php index 1d82304..e7ee2b7 100644 --- a/lib/Model/Project.php +++ b/lib/Model/Project.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectChannel.php b/lib/Model/ProjectChannel.php index 08956db..db7f6fa 100644 --- a/lib/Model/ProjectChannel.php +++ b/lib/Model/ProjectChannel.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectCompact.php b/lib/Model/ProjectCompact.php index 26b4259..8dfcc80 100644 --- a/lib/Model/ProjectCompact.php +++ b/lib/Model/ProjectCompact.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectDonationSettings.php b/lib/Model/ProjectDonationSettings.php index f98c7ac..5c308ce 100644 --- a/lib/Model/ProjectDonationSettings.php +++ b/lib/Model/ProjectDonationSettings.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectLicense.php b/lib/Model/ProjectLicense.php index 38906a0..8621dd0 100644 --- a/lib/Model/ProjectLicense.php +++ b/lib/Model/ProjectLicense.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectMember.php b/lib/Model/ProjectMember.php index a91bae1..b83b3d5 100644 --- a/lib/Model/ProjectMember.php +++ b/lib/Model/ProjectMember.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectNamespace.php b/lib/Model/ProjectNamespace.php index 58d1c22..d1dedc1 100644 --- a/lib/Model/ProjectNamespace.php +++ b/lib/Model/ProjectNamespace.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectSettings.php b/lib/Model/ProjectSettings.php index e80cb50..d7da7c0 100644 --- a/lib/Model/ProjectSettings.php +++ b/lib/Model/ProjectSettings.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectSortingStrategy.php b/lib/Model/ProjectSortingStrategy.php index ff5884d..1b1b6de 100644 --- a/lib/Model/ProjectSortingStrategy.php +++ b/lib/Model/ProjectSortingStrategy.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ProjectStats.php b/lib/Model/ProjectStats.php index e0b3e9e..c001a79 100644 --- a/lib/Model/ProjectStats.php +++ b/lib/Model/ProjectStats.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/RequestPagination.php b/lib/Model/RequestPagination.php index 410c962..6ebd0c9 100644 --- a/lib/Model/RequestPagination.php +++ b/lib/Model/RequestPagination.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/ReviewState.php b/lib/Model/ReviewState.php index 637354e..994ea66 100644 --- a/lib/Model/ReviewState.php +++ b/lib/Model/ReviewState.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/StringContent.php b/lib/Model/StringContent.php index b006dbe..6143dd9 100644 --- a/lib/Model/StringContent.php +++ b/lib/Model/StringContent.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/UploadedVersion.php b/lib/Model/UploadedVersion.php index e25208e..d6fa462 100644 --- a/lib/Model/UploadedVersion.php +++ b/lib/Model/UploadedVersion.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/User.php b/lib/Model/User.php index 5589a23..e729eb2 100644 --- a/lib/Model/User.php +++ b/lib/Model/User.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/UserActions.php b/lib/Model/UserActions.php index 0cc5911..7608e18 100644 --- a/lib/Model/UserActions.php +++ b/lib/Model/UserActions.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/UserNameChange.php b/lib/Model/UserNameChange.php index 7381324..c4c9d82 100644 --- a/lib/Model/UserNameChange.php +++ b/lib/Model/UserNameChange.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/UserPermissions.php b/lib/Model/UserPermissions.php index 91fe2a4..f499445 100644 --- a/lib/Model/UserPermissions.php +++ b/lib/Model/UserPermissions.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/Version.php b/lib/Model/Version.php index efb95ff..cebf8cf 100644 --- a/lib/Model/Version.php +++ b/lib/Model/Version.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/VersionStats.php b/lib/Model/VersionStats.php index 08bb484..37d1f1f 100644 --- a/lib/Model/VersionStats.php +++ b/lib/Model/VersionStats.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/VersionUpload.php b/lib/Model/VersionUpload.php index ccbefc9..82e6cd6 100644 --- a/lib/Model/VersionUpload.php +++ b/lib/Model/VersionUpload.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/Model/Visibility.php b/lib/Model/Visibility.php index bfbf9a4..0b7b9ee 100644 --- a/lib/Model/Visibility.php +++ b/lib/Model/Visibility.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index c8e6373..b795f50 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.2.0 + * Generator version: 7.7.0 */ /** @@ -338,7 +338,7 @@ public static function toFormValue($value) * If it's a datetime object, format it in ISO8601 * If it's a boolean, convert it to "true" or "false". * - * @param string|bool|\DateTime $value the value of the parameter + * @param float|int|bool|\DateTime $value the value of the parameter * * @return string the header string */ @@ -396,7 +396,6 @@ public static function serializeCollection(array $collection, $style, $allowColl * @param mixed $data object or primitive to be deserialized * @param string $class class name is passed as a string * @param string[] $httpHeaders HTTP headers - * @param string $discriminator discriminator if polymorphism is used * * @return object|array|null a single or an array of $class instances */ @@ -546,22 +545,64 @@ public static function deserialize($data, $class, $httpHeaders = null) } /** - * Native `http_build_query` wrapper. - * @see https://www.php.net/manual/en/function.http-build-query - * - * @param array|object $data May be an array or object containing properties. - * @param string $numeric_prefix If numeric indices are used in the base array and this parameter is provided, it will be prepended to the numeric index for elements in the base array only. - * @param string|null $arg_separator arg_separator.output is used to separate arguments but may be overridden by specifying this parameter. - * @param int $encoding_type Encoding type. By default, PHP_QUERY_RFC1738. - * - * @return string - */ - public static function buildQuery( - $data, - string $numeric_prefix = '', - ?string $arg_separator = null, - int $encoding_type = \PHP_QUERY_RFC3986 - ): string { - return \GuzzleHttp\Psr7\Query::build($data, $encoding_type); + * Build a query string from an array of key value pairs. + * + * This function can use the return value of `parse()` to build a query + * string. This function does not modify the provided keys when an array is + * encountered (like `http_build_query()` would). + * + * The function is copied from https://github.com/guzzle/psr7/blob/a243f80a1ca7fe8ceed4deee17f12c1930efe662/src/Query.php#L59-L112 + * with a modification which is described in https://github.com/guzzle/psr7/pull/603 + * + * @param array $params Query string parameters. + * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986 + * to encode using RFC3986, or PHP_QUERY_RFC1738 + * to encode using RFC1738. + */ + public static function buildQuery(array $params, $encoding = PHP_QUERY_RFC3986): string + { + if (!$params) { + return ''; + } + + if ($encoding === false) { + $encoder = function (string $str): string { + return $str; + }; + } elseif ($encoding === PHP_QUERY_RFC3986) { + $encoder = 'rawurlencode'; + } elseif ($encoding === PHP_QUERY_RFC1738) { + $encoder = 'urlencode'; + } else { + throw new \InvalidArgumentException('Invalid type'); + } + + $castBool = Configuration::BOOLEAN_FORMAT_INT == Configuration::getDefaultConfiguration()->getBooleanFormatForQueryString() + ? function ($v) { return (int) $v; } + : function ($v) { return $v ? 'true' : 'false'; }; + + $qs = ''; + foreach ($params as $k => $v) { + $k = $encoder((string) $k); + if (!is_array($v)) { + $qs .= $k; + $v = is_bool($v) ? $castBool($v) : $v; + if ($v !== null) { + $qs .= '='.$encoder((string) $v); + } + $qs .= '&'; + } else { + foreach ($v as $vv) { + $qs .= $k; + $vv = is_bool($vv) ? $castBool($vv) : $vv; + if ($vv !== null) { + $qs .= '='.$encoder((string) $vv); + } + $qs .= '&'; + } + } + } + + return $qs ? (string) substr($qs, 0, -1) : ''; } }