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

chore(server): enable swagger to take class validator rules into account (#9022)

* enable swagger to take class validator rules into account

* chore: open api
This commit is contained in:
Daniel Dietzler
2024-04-23 00:13:44 +02:00
committed by GitHub
parent c9a079201a
commit 7f1651df71
15 changed files with 78 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ class CreateUserDto {
String password;
/// Minimum value: 1
int? quotaSizeInBytes;
///

View File

@@ -27,6 +27,7 @@ class DownloadInfoDto {
///
String? albumId;
/// Minimum value: 1
///
/// 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

View File

@@ -16,6 +16,7 @@ class JobSettingsDto {
required this.concurrency,
});
/// Minimum value: 1
int concurrency;
@override

View File

@@ -260,6 +260,7 @@ class MetadataSearchDto {
///
String? originalPath;
/// Minimum value: 1
///
/// 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
@@ -286,6 +287,8 @@ class MetadataSearchDto {
///
String? resizePath;
/// Minimum value: 1
/// Maximum value: 1000
///
/// 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

View File

@@ -16,6 +16,7 @@ class OnThisDayDto {
required this.year,
});
/// Minimum value: 1
num year;
@override

View File

@@ -23,10 +23,15 @@ class RecognitionConfig {
bool enabled;
/// Minimum value: 0
/// Maximum value: 2
double maxDistance;
/// Minimum value: 1
int minFaces;
/// Minimum value: 0
/// Maximum value: 1
double minScore;
String modelName;

View File

@@ -192,6 +192,7 @@ class SmartSearchDto {
///
String? model;
/// Minimum value: 1
///
/// 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
@@ -204,6 +205,8 @@ class SmartSearchDto {
String query;
/// Minimum value: 1
/// Maximum value: 1000
///
/// 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

View File

@@ -41,22 +41,30 @@ class SystemConfigFFmpegDto {
List<VideoCodec> acceptedVideoCodecs;
/// Minimum value: -1
/// Maximum value: 16
int bframes;
CQMode cqMode;
/// Minimum value: 0
/// Maximum value: 51
int crf;
/// Minimum value: 0
int gopSize;
String maxBitrate;
/// Minimum value: 0
int npl;
String preferredHwDevice;
String preset;
/// Minimum value: 0
/// Maximum value: 6
int refs;
AudioCodec targetAudioCodec;
@@ -67,6 +75,7 @@ class SystemConfigFFmpegDto {
bool temporalAQ;
/// Minimum value: 0
int threads;
ToneMapping tonemap;

View File

@@ -28,12 +28,16 @@ class SystemConfigImageDto {
ImageFormat previewFormat;
/// Minimum value: 1
int previewSize;
/// Minimum value: 1
/// Maximum value: 100
int quality;
ImageFormat thumbnailFormat;
/// Minimum value: 1
int thumbnailSize;
@override

View File

@@ -39,6 +39,7 @@ class SystemConfigOAuthDto {
String clientSecret;
/// Minimum value: 0
num defaultStorageQuota;
bool enabled;

View File

@@ -17,6 +17,7 @@ class SystemConfigTrashDto {
required this.enabled,
});
/// Minimum value: 0
int days;
bool enabled;

View File

@@ -16,6 +16,7 @@ class SystemConfigUserDto {
required this.deleteDelay,
});
/// Minimum value: 1
int deleteDelay;
@override

View File

@@ -75,6 +75,7 @@ class UpdateUserDto {
///
String? password;
/// Minimum value: 1
int? quotaSizeInBytes;
///