diff --git a/src/SharedKernel/SharedKernel.csproj b/src/SharedKernel/SharedKernel.csproj index 5e4e997..c298e98 100644 --- a/src/SharedKernel/SharedKernel.csproj +++ b/src/SharedKernel/SharedKernel.csproj @@ -8,13 +8,13 @@ Readme.md Pandatech MIT - 1.8.0 + 1.8.1 Pandatech.SharedKernel Pandatech Shared Kernel Library Pandatech, shared kernel, library, OpenAPI, Swagger, utilities, scalar Pandatech.SharedKernel provides centralized configurations, utilities, and extensions for ASP.NET Core projects. For more information refere to readme.md document. https://github.com/PandaTechAM/be-lib-sharedkernel - Validator for files has breaking changes, but very easy to migrate (just name change) + File set added diff --git a/src/SharedKernel/ValidatorAndMediatR/Validators/Files/CommonFileSets.cs b/src/SharedKernel/ValidatorAndMediatR/Validators/Files/CommonFileSets.cs index f3b9f5f..b4b65c6 100644 --- a/src/SharedKernel/ValidatorAndMediatR/Validators/Files/CommonFileSets.cs +++ b/src/SharedKernel/ValidatorAndMediatR/Validators/Files/CommonFileSets.cs @@ -12,6 +12,8 @@ public static class CommonFileSets public static readonly string[] Images = [".jpg", ".jpeg", ".png", ".webp", ".heic", ".heif", ".svg", ".avif"]; + public static readonly string[] ImportFiles = [".csv", ".xlsx"]; + public static readonly string[] ImagesAndDocuments = Images.Concat(Documents) .ToArray(); } \ No newline at end of file