mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Adds the should aggregate artwork when missing setting to the user settings, configuration, and validation
This commit is contained in:
1 parent
6b5e731546
commit
e139a7bb00
21 files changed
+97
-43
No files matched your search
@@ -15,6 +15,7 @@ public static partial class Errors
|
||||
public static Error MediaRootDirectoryCannotBeEmpty => Error.Validation(description: nameof(MediaRootDirectoryCannotBeEmpty));
|
||||
public static Error MediaLibrariesDirectoryCannotBeEmpty => Error.Validation(description: nameof(MediaLibrariesDirectoryCannotBeEmpty));
|
||||
public static Error MediaBooksDirectoryCannotBeEmpty => Error.Validation(description: nameof(MediaBooksDirectoryCannotBeEmpty));
|
||||
public static Error MediaMusicDirectoryCannotBeEmpty => Error.Validation(description: nameof(MediaMusicDirectoryCannotBeEmpty));
|
||||
public static Error EncryptionSecretKeyCannotBeEmpty => Error.Validation(description: nameof(EncryptionSecretKeyCannotBeEmpty));
|
||||
public static Error EncryptionSecretKeyMustBeABase64String => Error.Validation(description: nameof(EncryptionSecretKeyMustBeABase64String));
|
||||
public static Error JwtSecretKeyCannotBeEmpty => Error.Validation(description: nameof(JwtSecretKeyCannotBeEmpty));
|
||||
|
||||
@@ -27,5 +27,9 @@ public class MediaSettingsDtoValidator : AbstractValidator<MediaSettingsDto>
|
||||
RuleFor(settings => settings.BooksDirectory)
|
||||
.NotEmpty()
|
||||
.WithError(Errors.Errors.Configuration.MediaBooksDirectoryCannotBeEmpty);
|
||||
|
||||
RuleFor(settings => settings.MusicDirectory)
|
||||
.NotEmpty()
|
||||
.WithError(Errors.Errors.Configuration.MediaMusicDirectoryCannotBeEmpty);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user