From 6c043492aaca6f2abc92bbf6ec1859323895cf81 Mon Sep 17 00:00:00 2001 From: PlacidaRebello <58341875+PlacidaRebello@users.noreply.github.com> Date: Wed, 11 Nov 2020 18:18:10 -0800 Subject: [PATCH 1/2] Removed Zymlabs Dependencies --- MicroservicesTemplateAPI/Startup.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/MicroservicesTemplateAPI/Startup.cs b/MicroservicesTemplateAPI/Startup.cs index 544d1ee..7f321ea 100644 --- a/MicroservicesTemplateAPI/Startup.cs +++ b/MicroservicesTemplateAPI/Startup.cs @@ -7,7 +7,6 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using ZymLabs.NSwag.FluentValidation.AspNetCore; namespace MicroservicesTemplateAPI { @@ -29,13 +28,7 @@ public void ConfigureServices(IServiceCollection services) services .AddControllers() - - .AddFluentValidation(c => - { - c.RegisterValidatorsFromAssemblyContaining(); - - c.ValidatorFactoryType = typeof(HttpContextServiceProviderValidatorFactory); - }); + .AddFluentValidation(); services.AddHealthChecks(); From 53c44db8af1b7dc75b6ca855fe26f6cbb3f8f8de Mon Sep 17 00:00:00 2001 From: PlacidaRebello <58341875+PlacidaRebello@users.noreply.github.com> Date: Wed, 11 Nov 2020 18:18:58 -0800 Subject: [PATCH 2/2] Update MicroservicesTemplateAPI.csproj --- MicroservicesTemplateAPI/MicroservicesTemplateAPI.csproj | 2 -- 1 file changed, 2 deletions(-) diff --git a/MicroservicesTemplateAPI/MicroservicesTemplateAPI.csproj b/MicroservicesTemplateAPI/MicroservicesTemplateAPI.csproj index f7ed5b7..2c42d4b 100644 --- a/MicroservicesTemplateAPI/MicroservicesTemplateAPI.csproj +++ b/MicroservicesTemplateAPI/MicroservicesTemplateAPI.csproj @@ -39,8 +39,6 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - -