Skip to content

Commit 1d249da

Browse files
enable minimal api example (#36261)
1 parent 0284c28 commit 1d249da

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

aspnetcore/fundamentals/openapi/include-metadata.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,19 +161,13 @@ The [`[Description]`](xref:System.ComponentModel.DescriptionAttribute) attribute
161161

162162
#### [Minimal APIs](#tab/minimal-apis)
163163

164-
The [`[Description]`](xref:System.ComponentModel.DescriptionAttribute) attribute works in an MVC app but doesn't work in a Minimal API app at this time. For more information, see [`Description` parameter of `ProducesResponseTypeAttribute` does not work in minimal API app (`dotnet/aspnetcore` #60518)](https://github.com/dotnet/aspnetcore/issues/60518).
165-
166-
<!-- For activation when https://github.com/dotnet/aspnetcore/issues/60518 is resolved ...
167-
168164
The follow sample demonstrates how to set a description for a parameter.
169165

170166
```csharp
171167
app.MapGet("/attributes",
172168
([Description("This is a description.")] string name) => "Hello world!");
173169
```
174170

175-
-->
176-
177171
#### [Controllers](#tab/controllers)
178172

179173
The following sample demonstrates how to set a description for a parameter.

aspnetcore/fundamentals/openapi/includes/include-metadata9.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,13 @@ The [`[Description]`](xref:System.ComponentModel.DescriptionAttribute) attribute
145145

146146
#### [Minimal APIs](#tab/minimal-apis)
147147

148-
The [`[Description]`](xref:System.ComponentModel.DescriptionAttribute) attribute works in an MVC app but doesn't work in a Minimal API app at this time. For more information, see [`Description` parameter of `ProducesResponseTypeAttribute` does not work in minimal API app (`dotnet/aspnetcore` #60518)](https://github.com/dotnet/aspnetcore/issues/60518).
149-
150-
<!-- For activation when https://github.com/dotnet/aspnetcore/issues/60518 is resolved ...
151-
152148
The follow sample demonstrates how to set a description for a parameter.
153149

154150
```csharp
155151
app.MapGet("/attributes",
156152
([Description("This is a description.")] string name) => "Hello world!");
157153
```
158154

159-
-->
160-
161155
#### [Controllers](#tab/controllers)
162156

163157
The following sample demonstrates how to set a description for a parameter.

0 commit comments

Comments
 (0)