NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #1944 most downloaded on NuGet
Attributes used by 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 54 of 59 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
518 releases · first in 2022
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
[//]: # (## Minor Breaking Changes ⚠️)
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
<details><summary>Multi-level test-collection ordering</summary>
Tests can now be ordered by prioritizing test-collections, test-classes in those collections as well as tests within the classes for fully controlling the order of test execution when test-collections are involved. See here for a usage example.
</details>
<details><summary>Customize character encoding of JSON responses</summary>
A new config setting has been added for customizing the charset of JSON responses. utf-8 is used by default. can be set to null for disabling the automatic appending of the charset to the Content-Type header of responses.
app.UseFastEndpoints(c => c.Serializer.CharacterEncoding = "utf-8")
</details>
<details><summary>Setting for allowing [JsonIgnore] attribute on 'required' DTO properties</summary>
STJ typically does not allow required properties to be annotated with [JsonIgnore] attribute. The following doesn't work out of the box:
public class MyRequest
{
[JsonIgnore]
public required string Id { get; init; }
}
The following setting is now enabled by default allowing you to annotate required properties with [JsonIgnore]:
app.UseFastEndpoints(c => c.Serializer.EnableJsonIgnoreAttributeOnRequiredProperties = true)
It's necessary to decorate required properties with [JsonIgnore] in situations where the same property is bound from multiple sources.
</details>
<details><summary>Read form-field values together with form-file sections</summary>
A new method has been added to conveniently read regular form-field values when they come in with multi-part form data requests while buffering is turned off.
await foreach (var sec in FormMultipartSectionsAsync(ct))
{
//reading the value of a form field
if (sec.IsFormSection && sec.FormSection.Name == "formFieldName")
{
var formFieldValue = await sec.FormSection.GetValueAsync(ct);
}
//obtaining the stream of a file
if (sec.IsFileSection && sec.FileSection.Name == "fileFieldName")
{
var fileStream = sec.FileSection.FileStream;
}
}
</details>
<details><summary>'IDisposable' & 'IAsyncDisposable' support for endpoint classes</summary>
You can now implement either 'IDisposable' or 'IAsyncDisposable' interfaces on your Endpoint classes and the correct dispose method will be called once the endpoint completes sending the response.
</details>
<details><summary>Ability to override Swagger Auto-Tagging per endpoint</summary>
Previously you could only choose a single strategy for tagging/grouping endpoints with Swagger. You could either use the path segment based auto-tagging or you could turn it off and manually tag each endpoint yourself. Now you can have auto-tagging enabled and override the auto-tag value per endpoint when necessary like so:
Description(x => x.AutoTagOverride("Overridden Tag Name"))
</details>
<details><summary>Remove dependency on 'Xunit.Priority' package</summary>
The 'Xunit.Priority' package is no longer necessary as we've implemented our own test-case-orderer. If you've been using test ordering with the [Priority(n)] attribute, all you need to do is get rid of any using statements that refer to XUnit.Priority.
</details>
<details><summary>Issue with FluentValidation+Swagger integration</summary>
When a child validator has no parameterless constructor, the FV+Swagger integration was not able to construct an instance of the child validator causing it to be ignored when generating the Swagger spec. Child validators will now be instantiated via FE's service resolver in the validation schema processor to mitigate this issue.
</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
[//]: # (## Minor Breaking Changes ⚠️)
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
<details><summary>Jwt token revocation middleware</summary>
Jwt token revocation can be easily implemented with the newly provided abstract class like so:
public class JwtBlacklistChecker(RequestDelegate next) : JwtRevocationMiddleware(next)
{
protected override Task<bool> JwtTokenIsValidAsync(string jwtToken, CancellationToken ct)
{
//return true if the supplied token is still valid
}
}
Simply register it before any auth related middleware like so:
app.UseJwtRevocation<JwtBlacklistChecker>()
.UseAuthentication()
.UseAuthorization()
</details>
<details><summary>Ability to override JWT Token creation options per request for Refresh Tokens</summary>
A couple of new optional hooks have been added that can be tapped in to if you'd like to modify Jwt token creation parameters per request, and also modify the token response per request before it's sent to the client. Per request token creation parameter modification may be useful when allowing the client to decide the validity of tokens.
</details>
<details><summary>Ability to subscribe to gRPC Events from Blazor Wasm projects</summary>
Until now, only gRPC Command initiations were possible from within Blazor Wasm projects. Support has been added to the FastEndpoints.Messaging.Remote.Core project which is capable of running in the browser to be able to act as a subscriber for Event broadcasts from a gRPC server. See here for a sample project showcasing both.
</details>
<details><summary>Get rid of Swagger middleware ordering requirements</summary>
Swagger middleware ordering is no longer important. You can now place the .SwaggerDocument() and .UseSwaggerGen() calls wherever you prefer.
</details>
<details><summary>Swagger OneOf support for polymorphic request/response DTOs</summary>
Correctly annotated polymorphic base types can now be used as request/response DTOs. The possible list of derived types will be shown in Swagger UI under a OneOf field. To enable, decorate the base type with the correct set of attributes like so:
public class Apple : Fruit
{
public string Foo { get; set; }
}
public class Orange : Fruit
{
public string Bar { get; set; }
}
[JsonPolymorphic(TypeDiscriminatorPropertyName = "_t")]
[JsonDerivedType(typeof(Apple), "a")]
[JsonDerivedType(typeof(Orange), "o")]
public class Fruit
{
public string Baz { get; set; }
}
And set the following setting to true when defining the Swagger document:
builder.Services.SwaggerDocument(c => c.UseOneOfForPolymorphism = true)
</details>
<details><summary>Swagger generator issue with [FromBody] properties</summary>
The referenced schema was generated as a OneOf instead of a direct $ref when a request DTO property was being annotated with the [FromBody] attribute.
</details>
<details><summary>Swagger route parameter detection issue</summary>
The Nswag operation processor did not correctly recognize route parameters in the following form:
api/a:{id1}:{id2}
Which has now been corrected thanks to PR #735
</details>
<details><summary>Kiota client generation issue with 'clean output' setting</summary>
If the setting for cleaning the output folder was enabled, Kiota client generation was throwing an error that it can't find the input swagger json file, because Kiota deletes everything in the output folder when that setting is enabled. From now on, if the setting is enabled, the swagger json file will be created in the system temp folder instead of the output folder.
</details>
<details><summary>Graceful shutdown issue of gRPC streaming</summary>
Server & Client Streaming was not listening for application shutdown which made app shutdown to wait until the streaming was finished. It has been fixed to be able to gracefully terminate the streams if the application is shutting down.
</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
NOTE: This feature warrants a minor breaking change. See how to upgrade below.
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
<details><summary>Support for cancellation of queued jobs</summary>
Queuing a command as a job now returns a Tracking Id with which you can request cancellation of a queued job from anywhere/anytime like so:
var trackingId = await new LongRunningCommand().QueueJobAsync();
await JobTracker<LongRunningCommand>.CancelJobAsync(trackingId);
Use either use the JobTracker<TCommand> generic class or inject a IJobTracker<TCommand> instance from the DI Container to access the CancelJobAsync() method.
NOTE: This feature warrants a minor breaking change. See how to upgrade below.
</details>
<details><summary>Check if app is being run in Swagger Json export mode and/or Api Client Generation mode</summary>
You can now use the following new extension methods for conditionally configuring your middleware pipeline depending on the mode the app is running in:
bld.IsNotGenerationMode(); //returns true if running normally
bld.IsApiClientGenerationMode(); //returns true if running in client gen mode
bld.IsSwaggerJsonExportMode(); //returns true if running in swagger export mode
app.IsNotGenerationMode(); //returns true if running normally
app.IsApiClientGenerationMode(); //returns true if running in client gen mode
app.IsSwaggerJsonExportMode(); //returns true if running in swagger export mode
</details>
<details><summary>[AllowFileUploads] attribute for endpoint class decoration</summary>
When using attribute based configuration of endpoints you can now enable file upload support for endpoints like so:
[HttpPost("form"), AllowFileUploads]
sealed class MyEndpoint : Endpoint<MyRequest>
{
}
</details>
<details><summary>Blazor Wasm support for Remote messaging client</summary>
A new package has been added FastEndpoints.Messaging.Remote.Core which contains only the core functionality along with a client that's capable of running in the web browser with Blazor Wasm.
</details>
<details><summary>Bypass endpoint throttle limits with integration tests</summary>
Integration tests can now bypass the throttle limits enforced by endpoints if they need to like so:
[Fact]
public async Task Throttle_Limit_Bypassing_Works()
{
var client = App.CreateClient(new()
{
ThrottleBypassHeaderName = "X-Forwarded-For" //must match with what the endpoint is looking for
});
for (var i = 0; i < 100; i++)
{
var (rsp, _) = await client.GETAsync<ThrottledEndpoint, Response>();
rsp.IsSuccessStatusCode.Should().BeTrue();
}
}
Each request made through that client would then automatically contain a X-Forwarded-For header with a unique value per request allowing the test code to bypass the throttle limits set by the endpoint.
</details>
<details><summary>Change default redirection behavior of cookie authentication middleware</summary>
The default behavior of the ASP.NET cookie auth middleware is to automatically return a redirect response when current user is either not authenticated or unauthorized. This default behavior is not appropriate for REST APIs because there's typically no login UI page as part of the backend server to redirect to, which results in a 404 - Not Found error which confuses people that's not familiar with the cookie auth middleware. The default behavior has now been overridden to correctly return a 401 - Unauthorized & 403 - Forbidden as necessary without any effort from the developer.
</details>
<details><summary>Change 'RoleClaimType' of cookie auth to non-soap value</summary>
Until now, the CookieAuth.SignInAsync() method was using the long soap version of 'Role Claim Type' value http://schemas.microsoft.com/ws/2008/06/identity/claims/role which is not in line with what FE uses for JWT tokens. Now both JWT & Cookie auth uses the same value from the global config which is set like below or it's default value role:
app.UseFastEndpoints(c=>c.Security.RoleClaimType = "role");
</details>
<details><summary>Workaround for CookieAuth middleware 'IsPersistent' misbehavior</summary>
By default, in ASP.NET Cookie middleware, if you specify an Expiry or Max-Age at the global/middleware level, setting IsPersitent = false will have no effect when signing in the user, as the middleware sets Expiry/Max-Age on the generated cookie anyway, making it a persistent cookie. A workaround has been implemented to fix this behavior.
</details>
<details><summary>[HideFromDocs] attribute missing issue with the source generator</summary>
If the consuming project didn't have a global using FastEndpoints; statement, the generated classes would complain about not being able to located the said attribute, which has now been rectified.
</details>
<details><summary>Service registration source generator issue with third party source generators</summary>
The service registration source generator was encountering a compatibility issue with partial classes generated by other source generators such as Mapster, which has no been fixed.
</details>
<details><summary>Swagger UI issue with path param names that are substrings</summary>
If a route contains multiple path parameters where one is a substring of another, the generated swagger spec would cause Swagger UI to not match the path param correctly. An example of this would be a route such as the following:
/api/parents/{ParentId}/children/{Id}
Path segment matching has been changed to include the parenthesis as well in order to prevent substring matching.
</details>
<details><summary>Default values for Enum properties not displayed in Swagger UI</summary>
Enum property default values were not being displayed in Swagger UI due to incorrectly generated Swagger Spec due to a bug in NSwag. A workaround has been implemented to generate the correct spec.
</details>
<details><summary>Incorrect property name detection for STJ deserialization exceptions</summary>
When deserializing Enum arrays from query parameters, if one of the values is invalid, the following error response was generated with an incorrect property name:
{
"statusCode": 400,
"message": "One or more errors occurred!",
"errors": {
"0]": [
"The JSON value could not be converted to MyEnum. Path: $[0] | LineNumber: 0 | BytePositionInLine: 9."
]
}
}
Which has been now corrected to provide a better error message and the correct property name as follows:
{
"statusCode": 400,
"message": "One or more errors occurred!",
"errors": {
"myEnumValues": [
"Value [Xyz] is not valid for a [MyEnum[]] property!"
]
}
}
</details>
<details><summary>Default response/produces metadata was ignored for 'IResult' response types</summary>
There was an oversight in adding default response metadata to endpoints that were returning 'IResult' types, which has now been rectified.
</details>
<details><summary>Job storage record & storage provider update</summary>
In order to support the new job cancellation feature, the following steps must be taken for a smooth migration experience:
Guid property called TrackingID to the job storage record entity and run a migration if using EF Core.CancelJobAsync() method on the job storage provider</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
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
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>Idempotency support based on 'OutputCaching' middleware</summary>
FastEndpoints now ships with built-in endpoint idempotency support built around the OutputCaching middleware.
</details>
<details><summary>Specify additional Http Verbs/Methods for endpoints globally</summary>
In addition to the Verbs you specify at the endpoint level, you can now specify Verbs to be added to endpoints with the global configurator as well as endpoint groups like so:
//global configurator
app.UseFastEndpoints(
c => c.Endpoints.Configurator =
ep =>
{
ep.AdditionalVerbs(Http.OPTIONS, Http.HEAD);
})
//endpoint group
sealed class SomeGroup : Group
{
public SomeGroup()
{
Configure(
"prefix",
ep =>
{
ep.AdditionalVerbs(Http.OPTIONS, Http.HEAD);
});
}
}
</details>
<details><summary>Collection-Fixture support for Testing</summary>
This release brings easy access to xUnit collection-fixtures for integration testing. Please see the documentation for details.
</details>
<details><summary>Export multiple swagger json files in one go</summary>
A new overload has been added to the ExportSwaggerJsonAndExitAsync() method for exporting multiple Swagger Json files using the FastEndpoints.ClientGen.Kiota library.
await app.ExportSwaggerJsonAndExitAsync(
ct: default,
c =>
{
c.DocumentName = "v1";
c.DestinationPath = "/export/path";
c.DestinationFileName = "v1.json";
},
c =>
{
c.DocumentName = "v2";
c.DestinationPath = "/export/path";
c.DestinationFileName = "v2.json";
});
</details>
<details><summary>Throw meaningful exception when incorrect JWT singing algorithm is used</summary>
When creating Asymmetric JWTs, if the user forgets to change the default SigningAlgorithm from HmacSha256 to something suitable for Asymmetric signing, a helpful exception message will be thrown instructing the user to correct the mistake. More info: #685
</details>
<details><summary>Establish SSE connection before any data is available</summary>
The SSE request would previously stay in a pending state if there was no initial data available to be sent to the client. Now the client would receive the response headers and await future data in a "connection established" state, even if no data has been received from the server.
</details>
<details><summary>Workaround for NSwag bug with nullable enum parameters</summary>
Swagger UI fails to correctly render a dropdown for nullable Enum DTO properties due to a bug in NSwag where the schema is always referenced via a OneOf, instead of directly referencing it with a $ref. A workaround has been implemented to mitigate the issue. #699
</details>
<details><summary>ACL source generator wasn't filtering out internal public static fields</summary>
Generated ACL incorrectly contained the Descriptions property in the permission dictionary items due to not being filtered out correctly, which has now been fixed.
</details>
<details><summary>Swagger generation failure due to multiple route constraints</summary>
Swagger generation was throwing an exception if an endpoint with multiple route constraints on a single parameter such as the following was encountered:
/{member:int:min(1):max(5)}/
</details>
<details><summary>Move static properties of 'ProblemDetails' class to global config</summary>
Static configuration properties that used to be on the ProblemDetails class will have to be set from the global configuration going forward like so:
app.UseFastEndpoints(
c => c.Errors.UseProblemDetails(
x =>
{
x.AllowDuplicateErrors = true; //allows duplicate errors for the same error name
x.IndicateErrorCode = true; //serializes the fluentvalidation error code
x.IndicateErrorSeverity = true; //serializes the fluentvalidation error severity
x.TypeValue = "https://www.rfc-editor.org/rfc/rfc7231#section-6.5.1";
x.TitleValue = "One or more validation errors occurred.";
x.TitleTransformer = pd => pd.Status switch
{
400 => "Validation Error",
404 => "Not Found",
_ => "One or more errors occurred!"
};
}));
</details>
Nothing published for this version
Nothing published for this version
One column per quarter.