1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-05 06:00:24 +02:00

chore(server): openapi generation (#9585)

This commit is contained in:
Alex
2024-05-18 13:50:28 -05:00
committed by GitHub
parent 60427f18ce
commit 1ad04f0b17
15 changed files with 214 additions and 9 deletions

View File

@ -42,7 +42,7 @@ class DuplicateApi {
);
}
Future<List<AssetResponseDto>?> getAssetDuplicates() async {
Future<List<DuplicateResponseDto>?> getAssetDuplicates() async {
final response = await getAssetDuplicatesWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
@ -52,8 +52,8 @@ class DuplicateApi {
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
.cast<AssetResponseDto>()
return (await apiClient.deserializeAsync(responseBody, 'List<DuplicateResponseDto>') as List)
.cast<DuplicateResponseDto>()
.toList(growable: false);
}