Skip to content

Commit dfd3d07

Browse files
authored
Merge pull request #36083 from dotnet/main
2 parents 6af53a3 + 0260e26 commit dfd3d07

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: wadepickett
44
description: Learn about the new features in ASP.NET Core in .NET 10.
55
ms.author: wpickett
66
ms.custom: mvc
7-
ms.date: 8/14/2025
7+
ms.date: 09/09/2025
88
uid: aspnetcore-10
99
---
1010
# What's new in ASP.NET Core in .NET 10
@@ -69,6 +69,8 @@ This section describes new features for OpenAPI.
6969

7070
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/upgrade-microsoft-openapi-2.md)]
7171

72+
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/openapi-schema-enhancements.md)]
73+
7274
## Authentication and authorization
7375

7476
### Authentication and authorization metrics
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
### OpenAPI Schema Generation Enhancements
2+
3+
#### Model nullable types using oneOf in OpenAPI schema
4+
5+
OpenAPI schema generation for nullable types was improved by using the `oneOf` pattern instead of the nullable property for complex types and collections. The implementation:
6+
7+
- Uses `oneOf` with `null` and the actual type schema for nullable complex types in request and response schemas.
8+
- Detects nullability for parameters, properties, and return types using reflection and `NullabilityInfoContext`.
9+
- Removes null types from componentized schemas to avoid duplication.
10+
11+
#### Fixes and improvements to schema reference resolution
12+
13+
This release improves the handling of JSON schemas for OpenAPI document generation by properly resolving relative JSON schema references (`$ref`) in the root schema document.
14+
15+
#### Include property descriptions as siblings of $ref in OpenAPI schema
16+
17+
Prior to .NET 10, ASP.NET Core discarded descriptions on properties defined with `$ref` in the generated OpenAPI document because OpenAPI v3.0 didn't allow sibling properties alongside `$ref` in schema definitions. OpenAPI 3.1 now lets you include descriptions alongside `$ref`. RC1 adds support for including property descriptions as siblings of `$ref` in the generated OpenAPI schema.
18+
19+
This was a community contribution. Thanks @desjoerd!
20+
21+
#### Add metadata from XML comments on `[AsParameters]` types to OpenAPI schema
22+
23+
OpenAPI schema generation now processes XML comments on properties of `[AsParameters]` parameter classes to extract metadata for documentation.
24+
25+
#### Exclude unknown HTTP methods from OpenAPI
26+
27+
OpenAPI schema generation now excludes unknown HTTP methods from the generated OpenAPI document. Query methods, which are standard HTTP methods but not recognized by OpenAPI, are now gracefully excluded from the generated OpenAPI document.
28+
29+
This was a community contribution. Thanks @martincostello!
30+
31+
#### Improve the description of JSON Patch request bodies
32+
33+
The OpenAPI schema generation for JSON Patch operations now correctly applies the `application/json-patch+json` media type to request bodies that use JSON Patch. This ensures that the generated OpenAPI document accurately reflects the expected media type for JSON Patch operations. In addition, the JSON Patch request body has a detailed schema that describes the structure of the JSON Patch document, including the operations that can be performed.
34+
35+
This was a community contribution. Thanks @martincostello!
36+
37+
#### Use invariant culture for OpenAPI document generation
38+
39+
OpenAPI document generation now uses invariant culture for formatting numbers and dates in the generated OpenAPI document. This ensures that the generated document is consistent and does not vary based on the server's culture settings.
40+
41+
This was a community contribution. Thanks @martincostello!

0 commit comments

Comments
 (0)