Migrate reviewed literal OpenAPI operation metadata

Proprietary

After confirming the built-in Microsoft OpenAPI pipeline, replace a resolved WithOpenApi callback containing only unique literal OperationId/Summary/Description assignments and return of the same operation with an endpoint operation transformer. Preserve other callbacks for review. Standalone opt-in for .NET 10 consumers.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.UseReviewedLiteralOpenApiTransformer

Optional

BuiltInPipelineReviewedBoolean

Confirm Microsoft.AspNetCore.OpenApi document generation replaces the previous pipeline, these literal operation fields retain their intended meaning, and no Swashbuckle/NSwag filters or consumers depend on old WithOpenApi metadata.

mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.UseReviewedLiteralOpenApiTransformer

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.