NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #2285 most downloaded on NuGet
Swagger support for FastEndpoints.
Latest stable
8.3.0
Last release 3 months ago
20 Aug 2026
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 55 of the last 60 stable releases
44 versions withdrawn
withdrawn after publishing
127 years old
804 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
<details><summary>New generic attribute [Group<T>] for attribute based endpoint group configuration</summary>
When using attribute based endpoint configuration, you can now use the generic 'Group<TEndpointGroup>' attribute to specify the group which the endpoint belongs to like so:
//group definition class
sealed class Administration : Group
{
public Administration()
{
Configure(
"admin",
ep =>
{
ep.Description(
x => x.Produces(401)
.WithTags("administration"));
});
}
}
//using generic attribute to associate the endpoint with the above group
[HttpPost("login"), Group<Administration>]
sealed class MyEndpoint : EndpointWithoutRequest
{
...
}
</details>
<details><summary>Specify a label, summary & description for Swagger request examples</summary>
When specifying multiple swagger request examples, you can now specify the additional info like this:
Summary(
x =>
{
x.RequestExamples.Add(
new(
new MyRequest { ... },
"label",
"summary",
"description"));
});
</details>
<details><summary>Automatic type inference for route params from route constraints for Swagger</summary>
Given route templates such as the following that has type constraints for route params, it was previously only possible to correctly infer the type of the parameter (for Swagger spec generation) if the parameters are being bound to a request DTO and that DTO has a matching property. The following will now work out of the box and the generated Swagger spec will have the respective parameter type/format.
sealed class MyEndpoint : EndpointWithoutRequest
{
public override void Configure()
{
Get("test/{id:int}/{token:guid}/{date:datetime}");
AllowAnonymous();
}
public override async Task HandleAsync(CancellationToken c)
{
var id = Route<int>("id");
var token = Route<Guid>("token");
var date = Route<DateTime>("date");
await SendAsync(new { id, token, date });
}
}
You can register your own route constraint types or even override the default ones like below by updating the Swagger route constraint map:
FastEndpoints.Swagger.GlobalConfig.RouteConstraintMap["nonzero"] = typeof(long);
FastEndpoints.Swagger.GlobalConfig.RouteConstraintMap["guid"] = typeof(Guid);
FastEndpoints.Swagger.GlobalConfig.RouteConstraintMap["date"] = typeof(DateTime);
</details>
<details><summary>Form related exception transformer function setting</summary>
When accessing Form data there are various cases where an exception would be thrown internally by ASP.NET such as in the case of the incoming request body size exceeding the default limit or whatever you specify like so:
bld.WebHost.ConfigureKestrel(
o =>
{
o.Limits.MaxRequestBodySize = 30000000;
});
If the incoming request body size is more than MaxRequestBodySize, Kestrel would automatically short-circuit the request with a 413 - Content Too Long response, which may not be what you want. You can instead specify a FormExceptionTrasnformer func to transform the exception in to a regular 400 error/problem details JSON response like so:
app.UseFastEndpoints(
c =>
{
c.Errors.UseProblemDetails(); //this is optional
c.Binding.FormExceptionTransformer =
ex => new ValidationFailure("GeneralErrors", ex.Message);
})
Which would result in a JSON response like so:
{
"type": "https://www.rfc-editor.org/rfc/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"instance": "/upload-file",
"traceId": "0HN39MGSS8QDA:00000001",
"errors": [
{
"name": "generalErrors",
"reason": "Request body too large. The max request body size is 30000000 bytes."
}
]
}
</details>
<details><summary>Ability to disable WAF/SUT caching in AppFixtures</summary>
AppFixture's default behavior of internally caching the SUT/WAF instance per derived AppFixture type can now be disabled simply by decorating the derived fixture class with an attribute like so:
[DisableWafCache]
public class MyAppFixture : AppFixture<Program> { ... }
</details>
<details><summary>Contention issue resulting in random 415 responses</summary>
There was a possible contention issue that could arise in an extremely niche edge case where the WAFs could be instantiated in quick succession which results in tests failing due to 415 responses being returned randomly. This has been fixed by moving the necessary work to be performed at app startup instead of at the first request for a particular endpoint. More info: #661
</details>
<details><summary>Eliminate potential contention issues with 'AppFixture'</summary>
AppFixture abstract class has been improved to use an Async friendly Lazy initialization technique to prevent any chances of more than a single WAF being created per each derived AppFixture type in high concurrent situations. Previously we were relying solely on ConcurrentDictionary's thread safety features which did not always give the desired effect. Coupling that with Lazy initialization seems to solve any and all possible contention issues.
</details>
<details><summary>Correct exception not thrown when trying to instantiate response DTOs with required properties</summary>
When the response DTO contains required properties like this:
public class MyResponse
{
public required string FullName { get; set; }
}
If an attempt was made to utilize the auto response sending feature by setting properties of the Response object, a 400 validation error was being thrown instead of a 500 internal server error. It is now correctly throwing the NotSupportedException as it should, because FE cannot automatically instantiate objects that have required properties and the correct usage is for you to instantiate the object yourself and set it to the Response property, which is what the exception will now be instructing you to do.
</details>
<details><summary>The way multiple Swagger request examples are set has been changed</summary>
Previous way:
Summary(s =>
{
s.RequestExamples.Add(new MyRequest {...});
});
New way:
s.RequestExamples.Add(new(new MyRequest { ... })); // wrapped in a RequestExample class
</details>
<details><summary>'PreSetupAsync()' trigger behavior change in AppFixture class</summary>
Previously the PreSetupAsync() virtual method was run per each test-class instantiation. That behavior does not make much sense as the WAF instance is created and cached just once per test run. The new behavior is more in line with other virtual methods such as ConfigureApp() & ConfigureServices() that they are only ever run once for the sake of creation of the WAF. This change will only affect you if you've been creating some state such as a TestContainer instance in PreSetupAsync and later on disposing that container in TearDownAsync(). From now on you should not be disposing the container yourself if your derived AppFixture class is being used by more than one test-class. See this gist to get a better understanding.
</details>
<details><summary>Consolidate Jwt key signing algorithm properties into one</summary>
JwtCreationOptions class had two different properties to specify SymmetricKeyAlgorithm as well as AsymmetricKeyAlgorithm, which has now been consolidated into a single property called SigningAlgorithm.
Before:
var token = JwtBearer.CreateToken(
o =>
{
o.SymmetricKeyAlgorithm = SecurityAlgorithms.HmacSha256Signature;
//or
o.AsymmetricKeyAlgorithm = SecurityAlgorithms.RsaSha256;
});
After:
var token = JwtBearer.CreateToken(
o =>
{
o.SigningStyle = TokenSigningStyle.Symmetric;
o.SigningAlgorithm = SecurityAlgorithms.HmacSha256Signature;
});
</details>
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
[//]: # (## Breaking Changes ⚠️)
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
<details><summary>Customize error response Content-Type globally</summary>
The default content-type header value for all error responses is application/problem+json. The default can now be customized as follows:
app.UseFastEndpoints(c => c.Errors.ContentType = "application/json")
</details>
<details><summary>'DontAutoSend()' support for 'Results<T1,T2,...>' returning endpoint handler methods</summary>
When putting a post-processor in charge of sending the
response, it was not previously supported when the handler method returns a Results<T1,T2,...>. You can now use the DontAutoSend() config option with such endpoint
handlers.
</details>
<details><summary>'ProblemDetails' per instance title transformer</summary>
You can now supply a delegate that will transform the Title field of ProblemDetails responses based on some info present on the final problem details instance.
For example, you can transform the final title value depending on the status code of the response like so:
ProblemDetails.TitleTransformer = p => p.Status switch
{
400 => "Validation Error",
404 => "Not Found",
_ => "One or more errors occurred!"
};
</details>
<details><summary>Setting for allowing empty request DTOs</summary>
By default, an exception will be thrown if you set the TRequest of an endpoint to a class type that does not have any bindable properties. This behavior can now be
turned off if your use case requires empty request DTOs.
app.UseFastEndpoints(c => c.Endpoints.AllowEmptyRequestDtos = true)
sealed record HelloRequest;
sealed class MyEndpoint : Endpoint<HelloRequest>
{
public override void Configure()
{
Post("test");
Description(x => x.ClearDefaultAccepts()); //this will be needed for POST requests
AllowAnonymous();
}
}
</details>
<details><summary>Ability to specify output file name with 'ExportSwaggerJsonAndExitAsync()'</summary>
It is now possible to customize the name of the exported swagger.json file when exporting a swagger document to disk with the ExportSwaggerJsonAndExitAsync() method.
</details>
<details><summary>Support async setup activity that contributes to WAF creation in 'AppFixture'</summary>
Previously it was not possible to do any setup activity that directly contributes to the creation of the WAF instance. Now it can be achieved like so:
using Testcontainers.MongoDb;
public class Sut : AppFixture<Program>
{
const string Database = "TestingDB";
const string RootUsername = "root";
const string RootPassword = "password";
MongoDbContainer _container = null!;
protected override async Task PreSetupAsync()
{
// anything that needs to happen before the WAF is initialized can be done here.
_container = new MongoDbBuilder()
.WithImage("mongo")
.WithUsername(RootUsername)
.WithPassword(RootPassword)
.WithCommand("mongod")
.Build();
await _container.StartAsync();
}
protected override void ConfigureApp(IWebHostBuilder b)
{
b.ConfigureAppConfiguration(
c =>
{
c.AddInMemoryCollection(
new Dictionary<string, string?>
{
{ "Mongo:Host", _container.Hostname },
{ "Mongo:Port", _container.GetMappedPublicPort(27017).ToString() },
{ "Mongo:DbName", Database },
{ "Mongo:UserName", RootUsername },
{ "Mongo:Password", RootPassword }
});
});
}
protected override async Task TearDownAsync()
=> await _container.DisposeAsync();
}
</details>
<details><summary>Automatically rewind request stream with 'IPlainTextRequest' when 'EnableBuffering()' is used.</summary>
It was not possible to manually re-read the request body stream due to IPlainTextRequest automatically consuming the stream even with the use of EnableBuffering().
The stream will now be automatically re-wound if EnableBuffering() is detected in order to allow re-reading the stream by the user.
</details>
<details><summary>Filter out illegal header names from being created as request parameters in Swagger docs</summary>
According to the OpenApi Spec, there are certain header names that are not allowed as part of the regular parameter specification in the Swagger Spec. These
Headers (Accept, Content-Type and Authorization) are described using other OpenApi fields. The FE Swagger generation did not previously respect/filter them out
when processing properties marked with [FromHeader].
</details>
<details><summary>'[FromBody]'attribute support for strongly-typed integration testing</summary>
There was no support for correctly integration testing an endpoint where its request DTO had a property decorated with [FromBody] attribute. This scenario is now
correctly implemented and handled by the strongly-typed extension methods for the HttpClient.
</details>
<details><summary>Hydrate typed integration testing route url with values from request DTO</summary>
Until now, when a strongly-typed integration test calls the endpoint, it was using a faux url with the correct number of route segments so that the correct endpoint gets called. Now, if there's a request DTO instance present, the actual values from the request DTO properties would be substituted resulting an actual url being called with actual values you supply during the test.
</details>
<details><summary>Prevent duplicate Swagger tag descriptions</summary>
An issue was reported with the swagger tag descriptions being repeated one for each endpoint in the generated swagger document. It has been fixed to prevent that from happening under any circumstances.
</details>
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
[//]: # (## Breaking Changes ⚠️)
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
<details><summary>Keyed service injection support</summary>
Keyed services introduced in .NET 8 can be injected like so:
//property injection
[KeyedService("KeyName")]
public IHelloWorldService HelloService { get; set; }
//constructor injection
public MyEndpoint([FromKeyedServices("KeyName")]IHelloWorldService helloScv)
{
...
}
//manual resolving
Resolve<IHelloWorldService>("KeyName");
</details>
<details><summary>Model binding support for Typed Http Headers</summary>
Typed Http Headers can be bound by simply annotating with a [FromHeader(...)] attribute like so:
sealed class MyRequest : PlainTextRequest
{
[FromHeader("Content-Disposition")]
public ContentDispositionHeaderValue Disposition { get; set; }
}
NOTE: Only supported on .Net 8+ and typed header classes from Microsoft.Net.Http.Headers namespace.
</details>
<details><summary>Ability to strip symbols from Swagger group/tag names</summary>
Given a route like:
/api/admin-dashboard/ticket/{id}
And swagger config like this:
bld.Services.SwaggerDocument(
o =>
{
o.AutoTagPathSegmentIndex = 2;
o.TagCase = TagCase.TitleCase;
o.TagStripSymbols = true; //this option is new
});
The resulting group/tag name will be:
AdminDashboard
</details>
<details><summary>Better separation of concerns for integration test-classes</summary>
Previously, the recommendation was to create as many derived TestFixture<TProgram> classes as needed and use them as the means to share data/state among multiple test-methods of the same test-class.
A new StateFixture abstract class has been introduced. So that your test suit can have just a couple of "App Fixtures"(AppFixture<TProgram>) - each representing a uniquely configured SUT(live app/WAF instance), while each test-class can have their own lightweight "StateFixture" for the sole purpose of sharing state/data amongst multiple test-methods of that test-class.
This leads to better test run performance as each unique SUT is only created once no matter how many test classes use the same derived AppFixture<TProgram> class. Please re-read the integration testing doc page for further clarification.
</details>
<details><summary>Relax DTO type constraint on 'Validator<TRequest>' class</summary>
The type constraint on the Validator<TRequest> class has been relaxed to notnull so that struct type DTOs can be validated.
</details>
<details><summary>Allow TestFixture's TearDownAsync method to make Http calls</summary>
Previously the TestFixture<TProgram> class would dispose the default http client before executing the teardown method. This prevents cleanup code to be able to make http calls. Now the http client is only disposed after TearDownAsync has completed.
</details>
<details><summary>Ability to customize job queue storage provider re-check frequency</summary>
You can now customize the job queue storage provider re-check time delay in case you need re-scheduled jobs to execute quicker.
app.UseJobQueues(
o =>
{
o.StorageProbeDelay = TimeSpan.FromSeconds(5);
});
</details>
<details><summary>Swagger UI displaying random text for email fields</summary>
When a FluentValidator rule is attached to a property that's an email address, Swagger UI was displaying a random string of characters instead of showing an email address. This has been rectified.
</details>
<details><summary>Swagger generation issue with form content and empty request DTO</summary>
Endpoints configured like below, where the request dto type is EmptyRequest and the endpoint allows form content; was causing the swagger processor to throw an error, which has been rectified.
sealed class MyEndpoint : EndpointWithoutRequest<MyResponse>
{
public override void Configure()
{
...
AllowFileUploads();
}
}
</details>
<details><summary>Swagger issue with reference type DTO props being marked as nullable</summary>
Given a DTO such as this:
sealed class MyRequest
{
public string PropOne { get; set; }
public string? PropTwo { get; set; }
}
The following swagger spec was generated before:
"parameters": [
{
"name": "propOne",
"in": "query",
"required": true,
"schema": {
"type": "string",
"nullable": true //this is wrong as property is not marked nullable
}
},
{
"name": "propTwo",
"in": "query",
"schema": {
"type": "string",
"nullable": true
}
}
]
Non-nullable reference types are now correctly generated as non-nullable.
</details>
<details><summary>Swagger security processor was unable to handle Minimal Api Endpoints with Auth requirements</summary>
A NRE was being thrown when the swagger security operation processor was encountering minimal api endpoints with auth requirements.
</details>
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.