1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

fix(deps): update dependency @nestjs/swagger to v8 (#13881)

* fix(deps): update dependency @nestjs/swagger to v8

* chore: generate open api

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
renovate[bot]
2024-12-23 21:03:34 +00:00
committed by GitHub
parent b88f98bf66
commit 6b08e82cf7
8 changed files with 301 additions and 112 deletions

View File

@ -13,17 +13,11 @@ part of openapi.api;
class AlbumUserAddDto {
/// Returns a new [AlbumUserAddDto] instance.
AlbumUserAddDto({
this.role,
this.role = AlbumUserRole.editor,
required this.userId,
});
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
AlbumUserRole? role;
AlbumUserRole role;
String userId;
@ -35,7 +29,7 @@ class AlbumUserAddDto {
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(role == null ? 0 : role!.hashCode) +
(role.hashCode) +
(userId.hashCode);
@override
@ -43,11 +37,7 @@ class AlbumUserAddDto {
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.role != null) {
json[r'role'] = this.role;
} else {
// json[r'role'] = null;
}
json[r'userId'] = this.userId;
return json;
}
@ -61,7 +51,7 @@ class AlbumUserAddDto {
final json = value.cast<String, dynamic>();
return AlbumUserAddDto(
role: AlbumUserRole.fromJson(json[r'role']),
role: AlbumUserRole.fromJson(json[r'role']) ?? AlbumUserRole.editor,
userId: mapValueOfType<String>(json, r'userId')!,
);
}

View File

@ -13,15 +13,15 @@ part of openapi.api;
class CreateLibraryDto {
/// Returns a new [CreateLibraryDto] instance.
CreateLibraryDto({
this.exclusionPatterns = const [],
this.importPaths = const [],
this.exclusionPatterns = const {},
this.importPaths = const {},
this.name,
required this.ownerId,
});
List<String> exclusionPatterns;
Set<String> exclusionPatterns;
List<String> importPaths;
Set<String> importPaths;
///
/// Please note: This property should have been non-nullable! Since the specification file
@ -53,8 +53,8 @@ class CreateLibraryDto {
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'exclusionPatterns'] = this.exclusionPatterns;
json[r'importPaths'] = this.importPaths;
json[r'exclusionPatterns'] = this.exclusionPatterns.toList(growable: false);
json[r'importPaths'] = this.importPaths.toList(growable: false);
if (this.name != null) {
json[r'name'] = this.name;
} else {
@ -74,11 +74,11 @@ class CreateLibraryDto {
return CreateLibraryDto(
exclusionPatterns: json[r'exclusionPatterns'] is Iterable
? (json[r'exclusionPatterns'] as Iterable).cast<String>().toList(growable: false)
: const [],
? (json[r'exclusionPatterns'] as Iterable).cast<String>().toSet()
: const {},
importPaths: json[r'importPaths'] is Iterable
? (json[r'importPaths'] as Iterable).cast<String>().toList(growable: false)
: const [],
? (json[r'importPaths'] as Iterable).cast<String>().toSet()
: const {},
name: mapValueOfType<String>(json, r'name'),
ownerId: mapValueOfType<String>(json, r'ownerId')!,
);

View File

@ -13,14 +13,14 @@ part of openapi.api;
class UpdateLibraryDto {
/// Returns a new [UpdateLibraryDto] instance.
UpdateLibraryDto({
this.exclusionPatterns = const [],
this.importPaths = const [],
this.exclusionPatterns = const {},
this.importPaths = const {},
this.name,
});
List<String> exclusionPatterns;
Set<String> exclusionPatterns;
List<String> importPaths;
Set<String> importPaths;
///
/// Please note: This property should have been non-nullable! Since the specification file
@ -48,8 +48,8 @@ class UpdateLibraryDto {
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'exclusionPatterns'] = this.exclusionPatterns;
json[r'importPaths'] = this.importPaths;
json[r'exclusionPatterns'] = this.exclusionPatterns.toList(growable: false);
json[r'importPaths'] = this.importPaths.toList(growable: false);
if (this.name != null) {
json[r'name'] = this.name;
} else {
@ -68,11 +68,11 @@ class UpdateLibraryDto {
return UpdateLibraryDto(
exclusionPatterns: json[r'exclusionPatterns'] is Iterable
? (json[r'exclusionPatterns'] as Iterable).cast<String>().toList(growable: false)
: const [],
? (json[r'exclusionPatterns'] as Iterable).cast<String>().toSet()
: const {},
importPaths: json[r'importPaths'] is Iterable
? (json[r'importPaths'] as Iterable).cast<String>().toList(growable: false)
: const [],
? (json[r'importPaths'] as Iterable).cast<String>().toSet()
: const {},
name: mapValueOfType<String>(json, r'name'),
);
}

View File

@ -13,13 +13,13 @@ part of openapi.api;
class ValidateLibraryDto {
/// Returns a new [ValidateLibraryDto] instance.
ValidateLibraryDto({
this.exclusionPatterns = const [],
this.importPaths = const [],
this.exclusionPatterns = const {},
this.importPaths = const {},
});
List<String> exclusionPatterns;
Set<String> exclusionPatterns;
List<String> importPaths;
Set<String> importPaths;
@override
bool operator ==(Object other) => identical(this, other) || other is ValidateLibraryDto &&
@ -37,8 +37,8 @@ class ValidateLibraryDto {
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'exclusionPatterns'] = this.exclusionPatterns;
json[r'importPaths'] = this.importPaths;
json[r'exclusionPatterns'] = this.exclusionPatterns.toList(growable: false);
json[r'importPaths'] = this.importPaths.toList(growable: false);
return json;
}
@ -52,11 +52,11 @@ class ValidateLibraryDto {
return ValidateLibraryDto(
exclusionPatterns: json[r'exclusionPatterns'] is Iterable
? (json[r'exclusionPatterns'] as Iterable).cast<String>().toList(growable: false)
: const [],
? (json[r'exclusionPatterns'] as Iterable).cast<String>().toSet()
: const {},
importPaths: json[r'importPaths'] is Iterable
? (json[r'importPaths'] as Iterable).cast<String>().toList(growable: false)
: const [],
? (json[r'importPaths'] as Iterable).cast<String>().toSet()
: const {},
);
}
return null;