Skip to content

Commit

Permalink
chore(deps): update openapitools/openapi-generator-cli docker tag to …
Browse files Browse the repository at this point in the history
…v7.5.0 (#55)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

191d913
  • Loading branch information
paddatrapper authored and libretime-bot committed Apr 21, 2024
1 parent 191d913 commit be4cb12
Show file tree
Hide file tree
Showing 246 changed files with 529 additions and 476 deletions.
2 changes: 1 addition & 1 deletion javascript-client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
7.5.0
42 changes: 41 additions & 1 deletion javascript-client/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,50 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
: nonString;
return needsSerialization
? JSON.stringify(value !== undefined ? value : {})
? JSON.stringify(value !== undefined ? convertMapsAndSetsToPlain(value) : {})
: (value || "");
}

function convertMapsAndSetsToPlain(value: any): any {
if (typeof Set === "undefined") return value;
if (typeof Map === "undefined") return value;
if (typeof value !== "object" || !value) {
return value;
}
if (value instanceof Set) {
return Array.from(value).map(item => convertMapsAndSetsToPlain(item));
}
if (value instanceof Map) {
const entries: Array<[string, any]> = [];
value.forEach((value: any, key: any) => {
entries.push([key, convertMapsAndSetsToPlain(value)])
});
return objectFromEntries(entries);
}
if (Array.isArray(value)) {
return value.map(it => convertMapsAndSetsToPlain(it));
}
return objectFromEntries(objectEntries(value)
.map(([k, v]) => [k, convertMapsAndSetsToPlain(v)]));
}

/**
* Ponyfill for Object.entries
*/
function objectEntries(object: Record<string, any>): Array<[string, any]> {
return Object.keys(object).map(key => [key, object[key]]);
}

/**
* Ponyfill for Object.fromEntries
*/
function objectFromEntries(entries: any): Record<string, any> {
return [...entries].reduce((object, [key, val]) => {
object[key] = val;
return object;
}, {});
}

/**
*
* @export
Expand Down
2 changes: 1 addition & 1 deletion php-client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
7.5.0
2 changes: 1 addition & 1 deletion php-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,5 +412,5 @@ vendor/bin/phpunit
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `2.0.0`
- Generator version: `7.4.0`
- Generator version: `7.5.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
2 changes: 1 addition & 1 deletion php-client/lib/Api/CeleryTasksApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/FilesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ImportedPodcastsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/InfoApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/LibrariesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ListenerCountsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/LiveLogsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/LoginAttemptsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/MountNamesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PlaylistContentsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PlaylistsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PlayoutHistoryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PlayoutHistoryMetadataApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PlayoutHistoryTemplateFieldsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PlayoutHistoryTemplatesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PodcastEpisodesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PodcastsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/PreferencesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ScheduleApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/SchemaApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ServiceRegistersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ShowDaysApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ShowHostsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ShowInstancesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ShowRebroadcastsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ShowsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/SmartBlockContentsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/SmartBlockCriteriaApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/SmartBlocksApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/StationPodcastsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/StreamApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/ThirdPartyTrackReferencesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/TimestampsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/UserTokensApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/UsersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/VersionApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion php-client/lib/Api/WebstreamMetadataApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.4.0
* Generator version: 7.5.0
*/

/**
Expand Down
Loading

0 comments on commit be4cb12

Please sign in to comment.