One line finally makes a minimal API

enforce its own attributes.

.NET 10 · THE WHOLE REGISTRATION builder.Services.AddValidation();
REQUEST · five rules broken
POST /orders          application/json

{
  "reference": "",
  "quantity": 900,
  "email": "nope",
  "address": { "city": "" },
  "lines": [ { "sku": "", "qty": 1 } ]
}
RESPONSE · all five named at once
400 Bad Request       application/json

"title": "One or more validation errors occurred."
"errors":
   ✕ Reference
   ✕ Quantity
   ✕ Email
   ✕ Address.City
   ✕ Lines[0].Sku
no type, no status: problem+json needs AddProblemDetails() as well
THE SAME CALL STEPS OVER
an array property a dictionary property a parameter that bound to null endpoints mapped from a class library
.NET 10 · SDK 10.0.201 · ASP.NET Core 10.0.5 · status, title and keys copied from the demo's test assertions
gdhami.net