Skip to content

Commit 80c876b

Browse files
WN: 10prev7 OpenAPI (#35925)
* WN: 10prev7 OpenAPI * Removed dupe openAPI 2 .md file * Fixed link * revert respoinseDescProducesResponseType.md changes since a different PR is handling that * Added enahnced validation * Update aspnetcore/release-notes/aspnetcore-10/includes/enhance-validation-classes-records.md Co-authored-by: Luke Latham <[email protected]> * Update aspnetcore/release-notes/aspnetcore-10/includes/upgrade-microsoft-openapi-2.md Co-authored-by: Luke Latham <[email protected]> * Update aspnetcore/release-notes/aspnetcore-10/includes/xml-comment-generator.md Co-authored-by: Luke Latham <[email protected]> --------- Co-authored-by: Luke Latham <[email protected]>
1 parent d6c4040 commit 80c876b

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Enhanced validation for classes and records
2+
3+
Validation attributes can now be applied to both classes and records with consistent code generation and validation behavior. This enhancement improves flexibility when designing models using records in ASP.NET Core apps.
4+
5+
Community contribution: Thanks to [@marcominerva](https://github.com/marcominerva)!
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Form data enum parameters use actual enum type in OpenAPI
2+
3+
Form data parameters in MVC controller actions now generate OpenAPI metadata using the actual enum type instead of defaulting to string.
4+
5+
Community contribution: Thanks to [@ascott18](https://github.com/ascott18)!
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Upgrade Microsoft.OpenApi to 2.0.0
2+
3+
The [`Microsoft.OpenApi`](https://www.nuget.org/packages/Microsoft.OpenApi/) library used for OpenAPI document generation in ASP.NET Core has been upgraded to version 2.0.0 (GA).
4+
With this update to the GA version, no further breaking changes are expected in OpenAPI document generation.

aspnetcore/release-notes/aspnetcore-10/includes/xml-comment-generator.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,9 @@ This configuration is done with directives in the project build file. The follow
2727
</Target>
2828
```
2929

30-
We expect to include XML comments from a selected set of assemblies in the shared framework in future previews, to avoid the need for this configuration in most cases.
30+
We expect to include XML comments from a selected set of assemblies in the shared framework in future previews to avoid the need for this configuration in most cases.
31+
32+
#### Unified handling of documentation IDs in OpenAPI XML comment generator
33+
34+
XML documentation comments from referenced assemblies are correctly merged even when their documentation IDs include return type suffixes. As a result, all valid XML comments are reliably included in generated OpenAPI documentation, improving documentation accuracy and completeness for APIs using referenced assemblies.
35+

0 commit comments

Comments
 (0)