From 703eb08e733428b21da36f5e1afed8ad06059029 Mon Sep 17 00:00:00 2001 From: "Samwel K." <40166690+samwelkanda@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:39:46 +0300 Subject: [PATCH] Update src/Kiota.Builder/Plugins/PluginsGenerationService.cs Co-authored-by: Andrew Omondi --- src/Kiota.Builder/Plugins/PluginsGenerationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kiota.Builder/Plugins/PluginsGenerationService.cs b/src/Kiota.Builder/Plugins/PluginsGenerationService.cs index 071640caa4..f356ef86b0 100644 --- a/src/Kiota.Builder/Plugins/PluginsGenerationService.cs +++ b/src/Kiota.Builder/Plugins/PluginsGenerationService.cs @@ -76,7 +76,7 @@ public async Task GenerateManifestAsync(CancellationToken cancellationToken = de var errors = OAIDocument.Validate(ruleSet)?.ToArray(); if (errors != null && errors.Length != 0) { - var message = string.Join(Environment.NewLine, errors.Select(e => $"{e.Pointer}: {e.Message}")); + var message = string.Join(Environment.NewLine, errors.Select(static e => $"{e.Pointer}: {e.Message}")); throw new InvalidOperationException($"OpenApi document validation failed with errors: {message}"); }