You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v10: OpenAPI Enhancements integration to doc set #36079
📌 Note to community: This is an automated preliminary analysis to help our documentation team quickly review, determine scope and prioritize this issue. This report is not a resolution or answer to your question—it's an internal triage tool that identifies potentially relevant docs, code samples, and versions to look into. A team member will review this issue and respond. Thank you for your contribution!
This preliminary assessment was originally run by:@wadepickett Original date: 2026-03-04 Corrected/verified date: 2026-08-19 Issue: 36079 Model: GitHub Copilot
✏️ Correction note: This version fixes stale line numbers, corrects target file names (most v10 content lives in include-metadata10.md, notinclude-metadata.md), and updates the status of the [SkipValidation] item, which has been partially completed.
Issue Analysis: v10 OpenAPI Enhancements Integration to Doc Set
✅ Issue Validation
Status: Valid and actionable. Verified against current main: items 1–7 are not yet integrated into the doc set (they exist only in the "What's New" release notes). Item 8 ([SkipValidation]) is partially complete (see below).
📋 Issue Summary
This issue tracks integrating the .NET 10 OpenAPI enhancements (described in #35994 (comment) by @mikekistler) into the core ASP.NET Core doc set. The related "What's New" PR #36078 is complete and added openapi-schema-enhancements.md, which summarizes 7 of the 8 items (it does not cover [SkipValidation]). The remaining task is to weave this content into the reference/conceptual articles.
The 8 enhancements:
Model nullable types using oneOf — oneOf pattern instead of nullable for complex types/collections.
Schema $ref resolution fixes — resolves relative JSON schema $ref in the root schema document.
Property descriptions as siblings of $ref — OpenAPI 3.1 relaxation (community contribution, @desjoerd).
XML comments on [AsParameters] types — metadata extracted from [AsParameters] property XML comments.
[SkipValidation] attribute — experimental opt-out of validation (partially documented — see status below).
⚠️ Corrections Applied to the Original Report
Original claim
Correction
nullable section at include-metadata10.mdlines 637-654
Actually lines 640-656 (the enum section occupies 602-638).
Several edits targeted include-metadata.md
For v10-only content, the correct file is include-metadata10.md (:::moniker range="= aspnetcore-10.0").
"Describe the request body" at include-metadata.mdlines 187-287
In include-metadata10.md this section is at lines 172-272.
customize-openapi.md$ref section at lines 159-177
The relevant "Customize schema reuse"$ref section is at lines 187-222.
openapi-comments.md insertion at line 35
"Supported XML documentation tags" list ends at line 35; insert a new subsection after it (~36+) or near "Handling of complex types" (line 158). File has no[AsParameters] content today.
aspnetcore-openapi.md at lines 65-78
Approximate only; "Configure OpenAPI document generation" begins at line 64 and "Options to Customize…" at line 75.
File:include-metadata10.md · Location:#### nullable, lines 640-656 · Type: Enhancement
Expand the existing nullable section (which currently shows only type: [null, string]) to explain that complex types and collections now use oneOf (e.g., oneOf: [{type: "null"}, {$ref: "#/components/schemas/MyType"}]). Add a oneOf example, note NullabilityInfoContext-based detection, and note that null types are pruned from componentized schemas.
2. Schema $ref resolution improvements
File:customize-openapi.md · Location: "Customize schema reuse", lines 187-222 · Type: Note
Add a [!NOTE] that relative JSON schema $ref references in the root schema document are now properly resolved.
3. Property descriptions as siblings of $ref
File:include-metadata10.md · Location: "Include OpenAPI metadata for data types" (line 475+) · Type: New paragraph
Document that, starting with .NET 10 (OpenAPI 3.1), property descriptions are preserved alongside $ref (previously discarded under OpenAPI 3.0).
4. XML comments on [AsParameters] types
File:openapi-comments.md · Location: after line 35 or near line 158 · Type: New subsection
Document that XML comments on [AsParameters] class properties are now processed into OpenAPI metadata, with a code example.
5. Exclude unknown HTTP methods
File:aspnetcore-openapi.md · Location: near lines 64-78 · Type: Note
Add a [!NOTE] that unknown HTTP methods (e.g., QUERY) are gracefully excluded from the generated document.
6. JSON Patch request body descriptions
File:include-metadata10.md · Location: "Describe the request body", lines 172-272 · Type: New subsection/note
Document that JSON Patch operations now use the application/json-patch+json media type with a detailed schema, including an example.
7. Invariant culture for document generation
File:aspnetcore-openapi.md · Location: near document generation section · Type: Note
Add a [!NOTE] that generation now uses invariant culture for consistent formatting regardless of server culture.
The experimental [SkipValidation] (Microsoft.Extensions.Validation.SkipValidationAttribute) is already documented in fundamentals/validation.md, in the "Experimental API in apps that target .NET 10" section (moniker = aspnetcore-10.0). That coverage includes:
The experimental status of ValidatableTypeAttribute and SkipValidationAttribute in .NET 10 (no longer experimental in .NET 11).
Blazor embedded-attribute generation behavior.
The ASP0029 analyzer warning and how to suppress it (<NoWarn> and #pragma).
No OpenAPI-specific coverage exists. Explain (or explicitly note the absence of) any effect [SkipValidation] has on OpenAPI schema generation in the OpenAPI articles.
Add a cross-reference from the OpenAPI metadata/validation discussion to xref:fundamentals/validation (specifically the experimental-API section) rather than re-documenting the attribute.
Do not duplicate the attribute description, experimental warning, or ASP0029 guidance in the OpenAPI docs — link to the validation article as the single source of truth.
🎯 Suggested Action Plan (corrected targets)
include-metadata10.md — oneOf nullable expansion (640-656); JSON Patch request body (172-272); $ref sibling descriptions in data-types section (475+).
openapi-comments.md — add [AsParameters] XML comment subsection (after 35 / near 158).
Activity
6 remaining items
[-]v10 RC1: OpenAPI Enhancements integration to doc set[/-][+]v10: OpenAPI Enhancements integration to doc set[/+]wadepickett commentedon Mar 4, 2026
🤖 AI Triage Summary (Corrected & Updated)
This preliminary assessment was originally run by: @wadepickett
Original date: 2026-03-04
Corrected/verified date: 2026-08-19
Issue: 36079
Model: GitHub Copilot
Issue Analysis: v10 OpenAPI Enhancements Integration to Doc Set
✅ Issue Validation
Status: Valid and actionable. Verified against current
main: items 1–7 are not yet integrated into the doc set (they exist only in the "What's New" release notes). Item 8 ([SkipValidation]) is partially complete (see below).📋 Issue Summary
This issue tracks integrating the .NET 10 OpenAPI enhancements (described in #35994 (comment) by @mikekistler) into the core ASP.NET Core doc set. The related "What's New" PR #36078 is complete and added
openapi-schema-enhancements.md, which summarizes 7 of the 8 items (it does not cover[SkipValidation]). The remaining task is to weave this content into the reference/conceptual articles.The 8 enhancements:
oneOf—oneOfpattern instead ofnullablefor complex types/collections.$refresolution fixes — resolves relative JSON schema$refin the root schema document.$ref— OpenAPI 3.1 relaxation (community contribution, @desjoerd).[AsParameters]types — metadata extracted from[AsParameters]property XML comments.QUERYgracefully excluded (community contribution, @martincostello).application/json-patch+jsonmedia type + detailed schema (community contribution, @martincostello).[SkipValidation]attribute — experimental opt-out of validation (partially documented — see status below).nullablesection atinclude-metadata10.mdlines 637-654enumsection occupies 602-638).include-metadata.mdinclude-metadata10.md(:::moniker range="= aspnetcore-10.0").include-metadata.mdlines 187-287include-metadata10.mdthis section is at lines 172-272.customize-openapi.md$refsection at lines 159-177$refsection is at lines 187-222.openapi-comments.mdinsertion at line 35[AsParameters]content today.aspnetcore-openapi.mdat lines 65-78📁 Potentially Affected Files (verified paths)
includes/openapi-schema-enhancements.mdfundamentals/openapi/includes/include-metadata10.mdfundamentals/openapi/openapi-comments.md[AsParameters]XML support (after line 35 / near 158)fundamentals/openapi/customize-openapi.md$refresolution note (187-222)fundamentals/openapi/aspnetcore-openapi.mdfundamentals/validation.md[SkipValidation]— cross-link only📝 Preliminary Change Assessment
1. Nullable types —
oneOfpatternFile:
include-metadata10.md· Location:#### nullable, lines 640-656 · Type: EnhancementExpand the existing nullable section (which currently shows only
type: [null, string]) to explain that complex types and collections now useoneOf(e.g.,oneOf: [{type: "null"}, {$ref: "#/components/schemas/MyType"}]). Add aoneOfexample, noteNullabilityInfoContext-based detection, and note that null types are pruned from componentized schemas.2. Schema
$refresolution improvementsFile:
customize-openapi.md· Location: "Customize schema reuse", lines 187-222 · Type: NoteAdd a
[!NOTE]that relative JSON schema$refreferences in the root schema document are now properly resolved.3. Property descriptions as siblings of
$refFile:
include-metadata10.md· Location: "Include OpenAPI metadata for data types" (line 475+) · Type: New paragraphDocument that, starting with .NET 10 (OpenAPI 3.1), property descriptions are preserved alongside
$ref(previously discarded under OpenAPI 3.0).4. XML comments on
[AsParameters]typesFile:
openapi-comments.md· Location: after line 35 or near line 158 · Type: New subsectionDocument that XML comments on
[AsParameters]class properties are now processed into OpenAPI metadata, with a code example.5. Exclude unknown HTTP methods
File:
aspnetcore-openapi.md· Location: near lines 64-78 · Type: NoteAdd a
[!NOTE]that unknown HTTP methods (e.g.,QUERY) are gracefully excluded from the generated document.6. JSON Patch request body descriptions
File:
include-metadata10.md· Location: "Describe the request body", lines 172-272 · Type: New subsection/noteDocument that JSON Patch operations now use the
application/json-patch+jsonmedia type with a detailed schema, including an example.7. Invariant culture for document generation
File:
aspnetcore-openapi.md· Location: near document generation section · Type: NoteAdd a
[!NOTE]that generation now uses invariant culture for consistent formatting regardless of server culture.8.⚠️ PARTIALLY COMPLETED
[SkipValidation]attribute —✅ Work already completed:
[SkipValidation](Microsoft.Extensions.Validation.SkipValidationAttribute) is already documented infundamentals/validation.md, in the "Experimental API in apps that target .NET 10" section (moniker= aspnetcore-10.0). That coverage includes:ValidatableTypeAttributeandSkipValidationAttributein .NET 10 (no longer experimental in .NET 11).ASP0029analyzer warning and how to suppress it (<NoWarn>and#pragma).🔲 Work still needed:
[SkipValidation]has on OpenAPI schema generation in the OpenAPI articles.xref:fundamentals/validation(specifically the experimental-API section) rather than re-documenting the attribute.ASP0029guidance in the OpenAPI docs — link to the validation article as the single source of truth.🎯 Suggested Action Plan (corrected targets)
include-metadata10.md—oneOfnullable expansion (640-656); JSON Patch request body (172-272);$refsibling descriptions in data-types section (475+).openapi-comments.md— add[AsParameters]XML comment subsection (after 35 / near 158).aspnetcore-openapi.md— unknown HTTP method exclusion + invariant culture notes (near 64-78).customize-openapi.md—$refresolution note in "Customize schema reuse" (187-222).[SkipValidation]— add cross-link from OpenAPI docs toxref:fundamentals/validation; do not re-document. Coordinate with [RC1] Update Blazor form validation docs for .NET 10 #35972.= aspnetcore-10.0moniker) — preferinclude-metadata10.mdover the multi-monikerinclude-metadata.md.openapi-schema-enhancements.mdis source material; adapt to reference/conceptual style.🔗 References
[SkipValidation]coverage:fundamentals/validation.md