Platform teams on .NET 8 are running the LTS arithmetic now: support ends November 2026, while .NET 10 LTS runs through November 2028. The upgrade decision is not about a footer version bump — it is about whether minimal API endpoints can shed hand-rolled validation middleware before the next integration audit. Teams that defer inherit the same bespoke IEndpointFilter stacks, divergent OpenAPI documents, and unnamed EF Core global filters that already consume support time each quarter. Industrial software estates do not get a pass for “we will clean it up in the next major” — integration partners, API gateways, and contract-test pipelines consume your OpenAPI document as law, and every filter the generator cannot see is a production incident waiting for a malformed payload.
Problem space: validation debt at the boundary
Industrial API estates — manufacturing execution, asset telemetry, supply-chain orchestration, plant historian integrations — typically carry hundreds of minimal API routes per bounded context. A recurring pattern in .NET 8 estates: POST endpoints with no schema validation at the framework layer, invalid payloads reaching handler logic and producing poison messages downstream. The quantified anchor is not framework novelty — it is boundary enforcement before domain code runs.
- ASP.NET Core minimal APIs on .NET 8 with FluentValidation bolted via custom filters
- OpenAPI 2.x/3.0 specs generated by Swashbuckle or hand-maintained YAML that drift from runtime
- EF Core 8 DbContext with implicit global query filters for tenancy and soft-delete
- Downstream consumers: partner REST clients, API gateways, contract-test pipelines
- Regression budget: downtime measured in production hours, not story points
Why the naive approach fails
For years, teams accepted weak input guarantees or wrapped every endpoint in custom IEndpointFilter implementations that duplicated what controllers got from model binding and DataAnnotations. The pattern looks reasonable in a spike; at scale it becomes archaeology. Each filter manually inspects route values, deserialises the body twice, and throws ad-hoc 400 responses without ProblemDetails shape. OpenAPI generation never sees those rules, so contract tests pass while production rejects payloads partners were told were valid.
// Naive: per-endpoint validation filter — duplicated across 40+ route groups
public sealed class WorkOrderValidationFilter : IEndpointFilter
{
public async ValueTask<object?> InvokeAsync(
EndpointFilterInvocationContext ctx, EndpointFilterDelegate next)
{
var dto = ctx.Arguments.OfType<CreateWorkOrderRequest>().FirstOrDefault();
if (dto is null)
return Results.BadRequest("Body required");
var errors = new List<string>();
if (string.IsNullOrWhiteSpace(dto.LotNumber))
errors.Add("LotNumber is required");
if (dto.Quantity is < 1 or > 99_999)
errors.Add("Quantity out of range");
if (!Enum.IsDefined(typeof(WorkOrderState), dto.TargetState))
errors.Add("Invalid state transition");
if (errors.Count > 0)
return Results.BadRequest(new { errors });
return await next(ctx);
}
}
app.MapPost("/work-orders", HandleCreate)
.AddEndpointFilter<WorkOrderValidationFilter>();
// Repeat WorkOrderValidationFilter pattern for every DTO — hundreds of endpoints
What breaks at scale is structural, not anecdotal. Maintaining those filters multiplies C# surface area across dozens of filter classes. Adding a field to CreateWorkOrderRequest requires touching the filter, the handler, the hand-written OpenAPI fragment, and consumer SDKs — a change that should be one attribute. Filters that re-parse JSON bodies the framework already materialised add latency per request. Worse, invalid enum values silently coerced to default in some code paths produce work orders in Released state with quantity zero — integration incidents traced back to missing boundary checks, not domain bugs.
The failure mode compounds across bounded contexts. When Plant A’s MES service and Plant B’s inventory service both implement slightly different LotNumber length rules, a lot transferred between sites fails at the receiver with a 400 that the sender’s OpenAPI said was valid. Support triages these as “partner bugs” until someone diffs the filter implementations. Unnamed EF Core global filters create a parallel problem on the read side: a dashboard query returns fewer rows than finance expects because ActiveAssetsOnly and TenantScope stack silently, and no engineer can grep for which filter excluded retired equipment still under warranty review.
Engineered approach: AddValidation, OpenAPI 3.1, named filters
.NET 10 moves validation to first-class minimal API support via AddValidation(), aligns OpenAPI output with 3.1 semantics, and introduces named EF Core query filters you can compose and disable explicitly. The engineered stack replaces bespoke filters with declarative rules the framework enforces and documents. Request flow under this model is linear: routing, validation, handler, persistence — no duplicate body parsing, no filter chain OpenAPI cannot see.
// Program.cs — .NET 10: validation registered once for the assembly
builder.Services.AddValidation();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddOpenApi(options =>
{
options.OpenApiVersion = Microsoft.OpenApi.OpenApiSpecVersion.OpenApi3_1;
});
// Endpoint — validation attributes drive both runtime and schema
app.MapPost("/work-orders", async (
[FromBody] CreateWorkOrderRequest req,
IWorkOrderService svc,
CancellationToken ct) =>
{
var id = await svc.CreateAsync(req, ct);
return Results.Created($"/work-orders/{id}", new { id });
})
.WithName("CreateWorkOrder")
.WithOpenApi();
public sealed record CreateWorkOrderRequest(
[Required, MaxLength(32)] string LotNumber,
[Range(1, 99_999)] int Quantity,
[EnumDefined(typeof(WorkOrderState))] WorkOrderState TargetState);
// Named EF Core filters — explicit, composable, grep-able
modelBuilder.Entity<EquipmentAsset>()
.HasQueryFilter("ActiveAssetsOnly", e => !e.IsRetired);
modelBuilder.Entity<WorkOrder>()
.HasQueryFilter("TenantScope", e => e.TenantId == _tenantProvider.Current);
// Admin reporting path disables filters by name — no magic bypass flags
var orders = await db.WorkOrders
.IgnoreQueryFilters("TenantScope")
.Where(o => o.TenantId == adminTenantId)
.ToListAsync(ct);
OpenAPI 3.1 export becomes a route you can gate in CI, not a build-step artefact that diverges from runtime. The same validation constraints that reject bad JSON appear in the schema partners consume.
# GET /openapi/v1.yaml — schema mirrors AddValidation attributes
openapi: 3.1.0
paths:
/work-orders:
post:
operationId: CreateWorkOrder
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWorkOrderRequest'
components:
schemas:
CreateWorkOrderRequest:
type: object
required: [lotNumber, quantity, targetState]
properties:
lotNumber: { type: string, maxLength: 32 }
quantity: { type: integer, minimum: 1, maximum: 99999 }
targetState:
type: string
enum: [Draft, Released, Completed, Cancelled]
Microsoft documents the full runtime, SDK, and API surface changes in the .NET 10 overview on Microsoft Learn — including LTS support timeline, SDK tooling, and the validation pipeline that replaces community middleware. Telerik’s implementer-focused walkthrough of what is new in APIs for .NET 10 covers AddValidation integration points, OpenAPI 3.1 nullable and union schema deltas, and EF Core named filter APIs that matter at the endpoint level — not keynote summaries.
Server-Sent Events and post-quantum cryptographic primitives also ship in .NET 10, but for most industrial API estates the migration ROI concentrates on the three changes that touch every request: boundary validation, contract fidelity, and query filter explicitness. SSE matters when you replace polling dashboards for furnace telemetry; PQC matters when security teams catalogue certificate lifetimes on field devices. Neither justifies deferring the validation and OpenAPI work that integrators feel on day one of a bad deploy.
Migration checklist: what to measure before cutover
Contract fidelity is the hidden metric. Before migration, compare published OpenAPI schemas against runtime enforcement — nullable markers, enum lists, request bodies documented that minimal APIs never bound. Partners build SDKs against that document; gateway validators enforce it; your service may enforce something else. OpenAPI 3.1 generation from the same attributes AddValidation reads collapses that triangle into one source of truth. CI can diff /openapi/v1.yaml on every pull request and fail builds when a new endpoint ships without schema coverage.
Platform owners on .NET 8 evaluating LTS through 2028 should treat migration as a measured cutover, not a version bump:
- Inventory endpoints with custom IEndpointFilter — tag those without OpenAPI schema parity
- Count filter classes and lines of validation code per bounded context — baseline before deletion
- Enable AddValidation in a branch; run contract tests against regenerated OpenAPI 3.1 YAML
- Name every implicit HasQueryFilter before adding new ones; document admin disable points
- Measure validation latency p50/p95 on top POST routes by QPS — before and after on staging
- Diff OpenAPI schemas pre/post migration; log breaking changes as explicit consumer tickets
- Track support tickets tagged validation drift or filter archaeology — quarter-over-quarter
- Cut over per bounded context; keep .NET 8 LTS parallel until November 2026 support window closes
- Pilot SSE on one high-churn polling endpoint to observe connection count and proxy behaviour
- Catalogue TLS and code-signing algorithms on edge gateways for PQC planning — parallel track, not a blocker
Platform owners who inventory only controller-era endpoints miss the majority of debt: minimal APIs adopted precisely because controllers felt heavy often skipped validation entirely. The .NET 10 migration is the occasion to close that gap with framework-native enforcement, not another round of copy-paste filters.
.NET 10 LTS is worth migrating for when validation, contracts, and data visibility touch every request — AddValidation, OpenAPI 3.1 export, named EF filters, structured ProblemDetails, and grep-able filter disable points are the difference between an integration audit you pass and one that schedules a quarter of remediation.

