Repository navigation
Integrate .NET 10 OpenAPI schema-generation enhancements into the OpenAPI doc set - #37497
Conversation
|
Fixes #36079 |
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Co-authored-by: Wade Pickett <wpickett@microsoft.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the ASP.NET Core OpenAPI documentation set to reflect .NET 10 schema-generation and document-generation enhancements described in #36079, including new guidance for schema nullability, $ref behavior, JSON Patch request bodies, and related cross-links.
Changes:
- Added .NET 10-specific OpenAPI schema-generation notes (JSON Patch request body media type/schema,
$ref+ description behavior, nullable complex types/collections usingoneOf, and[SkipValidation]cross-link). - Added documentation for XML comments on
[AsParameters]-annotated types. - Updated OpenAPI generation behavior notes and refreshed article metadata (
ms.date,ai-usage) across impacted pages.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| aspnetcore/fundamentals/openapi/openapi-comments.md | Adds a new section documenting XML comments on [AsParameters] types; updates metadata. |
| aspnetcore/fundamentals/openapi/includes/include-metadata10.md | Documents .NET 10 OpenAPI schema-generation enhancements (JSON Patch, $ref sibling description, nullable complex types oneOf, [SkipValidation] note). |
| aspnetcore/fundamentals/openapi/include-metadata.md | Updates metadata for the main “include metadata” article. |
| aspnetcore/fundamentals/openapi/customize-openapi.md | Adds a .NET 10 note about relative $ref resolution; updates metadata and adds ai-usage. |
| aspnetcore/fundamentals/openapi/aspnetcore-openapi.md | Adds notes about excluding unknown HTTP methods and invariant-culture formatting; updates metadata. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| @@ -72,6 +72,11 @@ The following code: | |||
|
|
|||
| Launch the app and navigate to `https://localhost:{port}/openapi/v1.json` to view the generated OpenAPI document, where the `{port}` placeholder is the port. | |||
There was a problem hiding this comment.
Updated in commit baae9bb: changed {port} to {PORT} in the referenced sentence.
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Co-authored-by: Wade Pickett <wpickett@microsoft.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
Suppressed comments (1)
aspnetcore/fundamentals/openapi/customize-openapi.md:7
- In the YAML front matter,
monikerRangeis listed afterms.author. In other OpenAPI articles in this folder (for example,aspnetcore-openapi.mdandinclude-metadata.md),monikerRangecomes before thems.*keys, so this file is inconsistent and harder to scan/maintain.
ai-usage: ai-assisted
author: wadepickett
description: Learn how to customize OpenAPI documents in an ASP.NET Core app
ms.author: wpickett
monikerRange: '>= aspnetcore-9.0'
Co-authored-by: Wade Pickett <wpickett@microsoft.com>
Co-authored-by: Wade Pickett <wpickett@microsoft.com>
Fixes #36079
oneOf(include-metadata10.md)$ref(include-metadata10.md)include-metadata10.md)[SkipValidation]toxref:fundamentals/validation(include-metadata10.md)[AsParameters]types (openapi-comments.md)aspnetcore-openapi.md)$refresolution note (customize-openapi.md)ms.date,ai-usage) on affected articlesQUERYHTTP method wording)Internal previews