Skip to content

Commit 88b9539

Browse files
committed
fix snippet name
1 parent 33aa353 commit 88b9539

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

aspnetcore/release-notes/aspnetcore-10/includes/openApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This happens when the <xref:System.Text.Json.JsonSerializerOptions.NumberHandlin
1717

1818
With this feature, the default OpenAPI version for generated documents is`3.1`. The version can be changed by explicitly setting the [OpenApiVersion](/dotnet/api/microsoft.aspnetcore.openapi.openapioptions.openapiversion) property of the [OpenApiOptions](/dotnet/api/microsoft.aspnetcore.openapi.openapioptions) in the `configureOptions` delegate parameter of [AddOpenApi](/dotnet/api/microsoft.extensions.dependencyinjection.openapiservicecollectionextensions.addopenapi):
1919

20-
:::code language="csharp" source="~/release-notes/aspnetcore-10/samples/WebAppOpenAPI10/Program.cs" id="snippet_AddControllers" highlight="3":::
20+
:::code language="csharp" source="~/release-notes/aspnetcore-10/samples/WebAppOpenAPI10/Program.cs" id="snippet_DefaultOpenApiVersion" highlight="3":::
2121

2222
```csharp
2323
builder.Services.AddOpenApi(options =>

aspnetcore/release-notes/aspnetcore-10/samples/WebAppOpenAPI10/WebAppOpenAPI10.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

3+
<!-- <snippet_ConfigBuildTimeOpenApiDocVersion> -->
34
<PropertyGroup>
45
<TargetFramework>net10.0</TargetFramework>
56
<Nullable>enable</Nullable>
67
<ImplicitUsings>enable</ImplicitUsings>
78
<OpenApiGenerateDocuments>true</OpenApiGenerateDocuments>
9+
<!-- Configure build-time OpenAPI generation to produce an OpenAPI 3.0 document. -->
810
<OpenApiGenerateDocumentsOptions>--openapi-version OpenApi3_0</OpenApiGenerateDocumentsOptions>
911
</PropertyGroup>
12+
<!-- </snippet_ConfigBuildTimeOpenApiDocVersion> -->
1013

1114
<ItemGroup>
1215
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0-preview.3.25172.1" />

0 commit comments

Comments
 (0)