Skip to content

Commit 841683f

Browse files
committed
fix stuff
1 parent e22709e commit 841683f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

aspnetcore/fundamentals/openapi/aspnetcore-openapi.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ builder.Services.AddOpenApi(options =>
3838
When generating the OpenAPI document at build time, the OpenAPI version can be selected by setting the `--openapi-version` in the `OpenApiGenerateDocumentsOptions` MSBuild item.
3939

4040
```xml
41-
<!-- Configure build-time OpenAPI generation to produce an OpenAPI 3.0 document. -->
42-
<OpenApiGenerateDocumentsOptions>--openapi-version OpenApi3_0</OpenApiGenerateDocumentsOptions>
41+
<!-- Configure build-time OpenAPI generation to produce an OpenAPI 3.1 document. -->
42+
<OpenApiGenerateDocumentsOptions>--openapi-version OpenApi3_1</OpenApiGenerateDocumentsOptions>
4343
```
4444

4545
## Package installation
@@ -103,12 +103,14 @@ GET http://localhost:5000/openapi/internal.json
103103

104104
### Customize the OpenAPI version of a generated document
105105

106-
By default, OpenAPI document generation creates a document that is compliant with [v3.0 of the OpenAPI specification](https://spec.openapis.org/oas/v3.0.0). The following code demonstrates how to modify the default version of the OpenAPI document:
106+
By default, OpenAPI document generation creates a document that is compliant with
107+
108+
[OpenAPI version 3.1](https://spec.openapis.org/oas/v3.1.1.html). The following code demonstrates how to modify the default version of the OpenAPI document:
107109

108110
```csharp
109111
builder.Services.AddOpenApi(options =>
110112
{
111-
options.OpenApiVersion = OpenApiSpecVersion.OpenApi2_0;
113+
options.OpenApiVersion = OpenApiSpecVersion.OpenApi3_0;
112114
});
113115
```
114116

@@ -287,6 +289,10 @@ Publish the app.
287289
dotnet publish
288290
```
289291

292+
### Additional resources
293+
294+
*
295+
290296
:::moniker-end
291297

292298
[!INCLUDE[](~/fundamentals/openapi/includes/aspnetcore-openapi6-8.md)]

0 commit comments

Comments
 (0)