From bd2d7d116d2d13cee52cf7f90831014594b8e912 Mon Sep 17 00:00:00 2001 From: Rushikesh Vyas Date: Mon, 13 Nov 2023 11:01:18 -0500 Subject: [PATCH] Fixed spectral not checking source controlled file --- src/Workleap.OpenApi.MSBuild/ValidateOpenApiTask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Workleap.OpenApi.MSBuild/ValidateOpenApiTask.cs b/src/Workleap.OpenApi.MSBuild/ValidateOpenApiTask.cs index 06688e0..21a61ce 100644 --- a/src/Workleap.OpenApi.MSBuild/ValidateOpenApiTask.cs +++ b/src/Workleap.OpenApi.MSBuild/ValidateOpenApiTask.cs @@ -61,7 +61,7 @@ protected override async Task ExecuteAsync(CancellationToken cancellationT await installOasdiffTask; var generateOpenApiDocsPath = (await swaggerManager.RunSwaggerAsync(this.OpenApiSwaggerDocumentNames, cancellationToken)).ToList(); - var runSpectralTask = spectralManager.RunSpectralAsync(generateOpenApiDocsPath, this.OpenApiSpectralRulesetUrl, cancellationToken); + var runSpectralTask = spectralManager.RunSpectralAsync(this.OpenApiSpecificationFiles, this.OpenApiSpectralRulesetUrl, cancellationToken); var runOasdiffTask = oasdiffManager.RunOasdiffAsync(this.OpenApiSpecificationFiles, generateOpenApiDocsPath, cancellationToken); await runSpectralTask;