Skip to content

Commit 28cacf5

Browse files
wadepickettmikekistlertdykstra
authored
WN update prev 5: Validaton Min API and OpenAPI (#35587)
* WN update prev 5: Validaton Min API and OpenAPI * Removed unused empty file * typo fix * Update aspnetcore/release-notes/aspnetcore-10/includes/OpenApiPopulateXMLDocComments.md Co-authored-by: Mike Kistler <mikekistler@microsoft.com> * Update aspnetcore/release-notes/aspnetcore-10/includes/OpenApiNetUpdatePrev.md Co-authored-by: Tom Dykstra <tdykstra@microsoft.com> --------- Co-authored-by: Mike Kistler <mikekistler@microsoft.com> Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
1 parent fee6c6c commit 28cacf5

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This section describes new features for OpenAPI.
6161

6262
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/OpenApiSchemasInTransformers.md)]
6363

64-
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/OpenApiNetUpdatePrev17.md)]
64+
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/OpenApiNetUpdatePrev.md)]
6565

6666
### Authentication and authorization
6767

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### OpenAPI.NET updated to Preview.18
2+
3+
The OpenAPI.NET library used in ASP.NET Core OpenAPI document generation was upgraded to [v2.0.0-preview18](https://www.nuget.org/packages/Microsoft.OpenApi/2.0.0-preview.18). The v2.0.0-preview18 version improves compatibility with the updated library version.
4+
5+
The previous v2.0.0-preview17 version included a number of bug fixes and improvements and also introduced some breaking changes. The breaking changes should only affect users that use document, operation, or schema transformers. Breaking changes in this version that may affect developers include the following:
6+
7+
* [Ephemeral object properties are now in Metadata](https://github.com/microsoft/OpenAPI.NET/blob/main/docs/upgrade-guide-2.md#ephemeral-object-properties-are-now-in-metadata)
8+
* [Use HTTP Method Object Instead of Enum](https://github.com/microsoft/OpenAPI.NET/blob/main/docs/upgrade-guide-2.md#use-http-method-object-instead-of-enum)

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

Lines changed: 0 additions & 6 deletions
This file was deleted.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ app.MapPost("/products",
3131
=> TypedResults.Ok(productId))
3232
.DisableValidation();
3333
```
34+
35+
> [!NOTE]
36+
> Several small improvements and fixes have been made to the Minimal APIs validation generator introduced in ASP.NET Core for .NET 10. To support future enhancements, the underlying validation resolver APIs are now marked as experimental. The top-level `AddValidation` APIs and the built-in validation filter remain stable and non-experimental.

0 commit comments

Comments
 (0)