Skip to content

Integrate .NET 10 OpenAPI schema-generation enhancements into the OpenAPI doc set - #37497

Merged
wadepickett merged 9 commits into
mainfrom
copilot/update-openapi-enhancements-docs
Aug 20, 2026
Merged

wadepickett merged 9 commits into
mainfrom
copilot/update-openapi-enhancements-docs

Conversation

Copilot AI commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #36079

  • Nullable complex types/collections use oneOf (include-metadata10.md)
  • Property descriptions preserved as siblings of $ref (include-metadata10.md)
  • JSON Patch request body media type + schema (include-metadata10.md)
  • Cross-link [SkipValidation] to xref:fundamentals/validation (include-metadata10.md)
  • XML comments on [AsParameters] types (openapi-comments.md)
  • Exclude unknown HTTP methods + invariant culture notes (aspnetcore-openapi.md)
  • Relative $ref resolution note (customize-openapi.md)
  • Update metadata (ms.date, ai-usage) on affected articles
  • Address review feedback (clarify QUERY HTTP method wording)

Internal previews

File Preview link
aspnetcore/fundamentals/openapi/aspnetcore-openapi.md aspnetcore/fundamentals/openapi/aspnetcore-openapi
aspnetcore/fundamentals/openapi/customize-openapi.md aspnetcore/fundamentals/openapi/customize-openapi
aspnetcore/fundamentals/openapi/include-metadata.md aspnetcore/fundamentals/openapi/include-metadata
aspnetcore/fundamentals/openapi/includes/include-metadata10.md aspnetcore/fundamentals/openapi/includes/include-metadata10
aspnetcore/fundamentals/openapi/openapi-comments.md aspnetcore/fundamentals/openapi/openapi-comments

@wadepickett

Copy link
Copy Markdown
Contributor

Fixes #36079

Copilot AI and others added 2 commits August 19, 2026 02:32
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Copilot AI changed the title [WIP] Integrate OpenAPI enhancements into documentation set Integrate .NET 10 OpenAPI schema-generation enhancements into the OpenAPI doc set Aug 19, 2026
Copilot AI requested a review from wadepickett August 19, 2026 02:37
Co-authored-by: Wade Pickett <wpickett@microsoft.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 using oneOf, 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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@wadepickett
wadepickett marked this pull request as ready for review August 19, 2026 03:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, monikerRange is listed after ms.author. In other OpenAPI articles in this folder (for example, aspnetcore-openapi.md and include-metadata.md), monikerRange comes before the ms.* 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'

@wadepickett
wadepickett requested a review from tdykstra August 19, 2026 20:13
Co-authored-by: Wade Pickett <wpickett@microsoft.com>
Co-authored-by: Wade Pickett <wpickett@microsoft.com>

@tdykstra tdykstra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wadepickett
wadepickett merged commit adf460c into main Aug 20, 2026
3 checks passed
@wadepickett
wadepickett deleted the copilot/update-openapi-enhancements-docs branch August 20, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v10: OpenAPI Enhancements integration to doc set

4 participants