|
1 |
| -// Copyright (c) Microsoft Corporation. All rights reserved. |
| 1 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
2 | 2 | // Licensed under the MIT license.
|
3 | 3 |
|
4 | 4 | using System;
|
@@ -79,7 +79,7 @@ public static async Task TransformOpenApiDocument(HidiOptions options, ILogger l
|
79 | 79 |
|
80 | 80 | // Default to yaml and OpenApiVersion 3 during csdl to OpenApi conversion
|
81 | 81 | var openApiFormat = options.OpenApiFormat ?? (!string.IsNullOrEmpty(options.OpenApi) ? GetOpenApiFormat(options.OpenApi, logger) : OpenApiFormat.Yaml);
|
82 |
| - var openApiVersion = options.Version != null ? TryParseOpenApiSpecVersion(options.Version) : OpenApiSpecVersion.OpenApi3_0; |
| 82 | + var openApiVersion = options.Version != null ? TryParseOpenApiSpecVersion(options.Version) : OpenApiSpecVersion.OpenApi3_1; |
83 | 83 |
|
84 | 84 | // If ApiManifest is provided, set the referenced OpenAPI document
|
85 | 85 | var apiDependency = await FindApiDependency(options.FilterOptions.FilterByApiManifest, logger, cancellationToken).ConfigureAwait(false);
|
@@ -768,7 +768,7 @@ internal static async Task PluginManifest(HidiOptions options, ILogger logger, C
|
768 | 768 | // Write OpenAPI to Output folder
|
769 | 769 | options.Output = new(Path.Combine(options.OutputFolder, "openapi.json"));
|
770 | 770 | options.TerseOutput = true;
|
771 |
| - WriteOpenApi(options, OpenApiFormat.Json, OpenApiSpecVersion.OpenApi3_0, document, logger); |
| 771 | + WriteOpenApi(options, OpenApiFormat.Json, OpenApiSpecVersion.OpenApi3_1, document, logger); |
772 | 772 |
|
773 | 773 | // Create OpenAIPluginManifest from ApiDependency and OpenAPI document
|
774 | 774 | var manifest = new OpenAIPluginManifest
|
|
0 commit comments