Repository navigation
Open
Labels
package/aspnetcoreAffects CodoMetis.TypeKit.AspNetCoretestsAdds or changes tests only (tests, probes, harnesses); no library code
Milestone
Description
Goal
Show that TypeKit's OpenAPI transformers stay correct under Microsoft.AspNetCore.OpenApi 11. These checks are owed by the net11.0 target (#208).
Three changes in ASP.NET Core 11 (What's new):
- OpenAPI 3.2 is the default document version (
OpenApiSpecVersion.OpenApi3_2), built on Microsoft.OpenApi 3.3.1. - A server-sent events response is described with OpenAPI 3.2's
itemSchema. - A union return type is described as
anyOfwith a$refto each case's schema.
Checks
- The document version. A value object's schema is its wrapped type's, with its description, under both 3.2 and 3.1 (
options.OpenApiVersion). The same holds for a closed set and for a fault response. - Unions moved to net11.0: a union over value objects, in a woven project, keeps its JSON and OpenAPI schema (Metalama 2027) #272 on 2026-10-31. An endpoint returning a union with a value-object case needs the union declared in a woven project at C# 15, which Metalama 2026.1 doesn't give (decision 120); it waits for Move the Generators package to Metalama 2027.0 in 2.4.0 (decisions 120 and 129) #173, which decision 129 moved into 2.4.0.
- A
Resultas an HTTP response. Its fault responses keep their schemas next to ASP.NET Core 11's multipleProducesper status code. - The transformer API.
IOpenApiSchemaTransformerandIOpenApiOperationTransformercompile unchanged against Microsoft.OpenApi 3.x. If not, thenet11.0asset gets its own code path, and the shared behaviour is tested on both targets. - Server-sent events. An
SseItem<T>returned throughTypedResults.ServerSentEventsis described with OpenAPI 3.2'sitemSchemaundertext/event-stream(feat: adds support for describing SSE in OpenAPI 3.2.0 dotnet/aspnetcore#67461). WithTa value object or a closed set, the payload schema insideitemSchemais the wrapped type's or the set's, with its description. Reading the diff, schema transformers run on the payload's schema and not on the wrapper around it: measure that, and the shape under 3.1.
Done when
The checks run in the net11.0 test run against OpenAPI 11. The floor raise is named in the changelog (decision 120, rule 1). Each disagreement is an issue of its own.
Metadata
Metadata
Assignees
Labels
package/aspnetcoreAffects CodoMetis.TypeKit.AspNetCoretestsAdds or changes tests only (tests, probes, harnesses); no library code
Activity
[-]net11.0: OpenAPI transformers under OpenAPI 3.2 and union return types[/-][+]net11.0: OpenAPI transformers under OpenAPI 3.2, server-sent events and union return types[/+]