From 1e47144c9459bdfce202f52afe581b9c637d2f7c Mon Sep 17 00:00:00 2001 From: JasonTaylorDev Date: Wed, 15 Nov 2023 20:07:31 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20SchemaProcessors=20is=20missing?= =?UTF-8?q?=20from=20NSwag=2014.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Web/DependencyInjection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Web/DependencyInjection.cs b/src/Web/DependencyInjection.cs index 461512239..a297b521d 100644 --- a/src/Web/DependencyInjection.cs +++ b/src/Web/DependencyInjection.cs @@ -51,7 +51,8 @@ public static IServiceCollection AddWebServices(this IServiceCollection services var fluentValidationSchemaProcessor = sp.CreateScope().ServiceProvider.GetRequiredService(); - configure.SchemaProcessors.Add(fluentValidationSchemaProcessor); + // BUG: SchemaProcessors is missing in NSwag 14 (https://github.com/RicoSuter/NSwag/issues/4524#issuecomment-1811897079) + // configure.SchemaProcessors.Add(fluentValidationSchemaProcessor); #if (UseApiOnly) // Add JWT