diff --git a/src/Microsoft.OpenApi.Hidi/OpenApiService.cs b/src/Microsoft.OpenApi.Hidi/OpenApiService.cs index c64bb606f..97899ee62 100644 --- a/src/Microsoft.OpenApi.Hidi/OpenApiService.cs +++ b/src/Microsoft.OpenApi.Hidi/OpenApiService.cs @@ -721,9 +721,8 @@ internal async static Task PluginManifest(HidiOptions options, ILogger logger, C { outputFolder.Create(); } - var slicedOpenApi = new FileInfo(Path.Combine(options.OutputFolder,"openapi.json")); // Write OpenAPI to Output folder - options.Output = slicedOpenApi; + options.Output = new FileInfo(Path.Combine(options.OutputFolder,"openapi.json")); options.TerseOutput =true; WriteOpenApi(options, OpenApiFormat.Json, OpenApiSpecVersion.OpenApi3_0, document, logger);