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.
This would be a breaking change only if you were doing any of the following:
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
<details><summary>Attribute driven response headers</summary>
Please see the documentation for more information.
</details>
<details><summary>Allow a Post-Processor to act as the sole mechanism for sending responses</summary>
As shown in this example, a post-processor can now be made the sole orchestrator of sending the appropriate response such as in the case with the "Results Pattern".
</details>
<details><summary>Support for generic commands and command handlers</summary>
Please see the documentation for more information.
</details>
<details><summary>Auto resolving of Mappers in unit tests</summary>
Previously it was necessary for the user to instantiate and set the mapper on endpoints when unit testing endpoints classes. It is no longer necessary to do so
unless you want to. Existing code doesn't need to change as the Mapper property is still publicly settable.
</details>
<details><summary>Respect default values of constructor arguments when model binding</summary>
The default request binder will now use the default values from the constructor arguments of the DTO when instantiating the DTO before model binding starts. For
example, the SomeOtherParam property will have a value of 10 if no other binding sources provides a value for it.
record MyRequest(string SomeParam,
int SomeOtherParam = 10);
</details>
<details><summary>Warn user about illegal request DTO types</summary>
FastEndpoints only supports model binding with DTOs that have publicly accessible properties. The following is not supported:
sealed class MyEndpoint : Endpoint<Guid>
A more detailed NotSupportedException is now being thrown to make it easy to track down the offending endpoint.
</details>
<details><summary>Property naming policy was not applied to route parameters when generating Swagger spec</summary>
If you had a request DTO like this:
sealed class MyRequest
{
public long SomeId { get; set; }
}
And a route like this:
public override void Configure()
{
Get("/something/{someID}");
}
Where the case of the parameter is different, and also had a property naming policy applied like this:
app.UseFastEndpoints(c => c.Serializer.Options.PropertyNamingPolicy = JsonNamingPolicy.KebabCaseLower)
Previously the Swagger spec generated would have a mismatched operation path parameter {someID} and a Swagger request parameter some-id.
Now the Swagger path parameter is correctly rendered to match with the exact value/case as the request parameter.
</details>
<details><summary>Change default output location for Kiota Api Client generation</summary>
When using .MapApiClientEndpoint(), previously the default value was a sub folder called ClientGen under the current folder. The default has been changed to a sub folder called KiotaClientGen in the current user's TEMP folder away from any project/source files, which is a much safer default location.
</details>
<details><summary>Type discovery source generator creating duplicates for partial classes</summary>
The type discovery source generator will now correctly detect partial classes of targets and only create a single entry. #574
</details>
<details><summary>Correct handling of Swagger request param examples</summary>
Examples for request parameters were previously rendered as strings instead of the respective primitives or json objects.
Given the DTO model (with examples as xml tags):
sealed class MyRequest
{
/// <example>
/// 10
/// </example>
public int SomeNumber { get; set; }
/// <example>
/// ["blah1","blah2"]
/// </example>
public string[] SomeList { get; set; }
/// <example>
/// { id : 1000, name : "john" }
/// </example>
public Nested SomeClass { get; set; }
public sealed class Nested
{
public int Id { get; set; }
public Guid GuidId { get; set; }
public string Name { get; set; }
}
}
Will now be correctly rendered as follows:
"parameters": [
{
"name": "someNumber",
"example": 10
},
{
"name": "someList",
"example": [
"blah1",
"blah2"
]
},
{
"name": "someClass",
"example": {
"id": 1000,
"name": "john"
}
}
]
</details>
<details><summary>MinLength validator rule was not detected after a NotEmpty rule in Swagger generation</summary>
RuleFor(r => r.Name)
.NotEmpty()
.MinimumLength(10); // this was not being picked up before
</details>
<details><summary>Minor behavior change of 'HttpClient' extensions when integration testing</summary>
Previous behavior of the HttpClient extension methods such as GETAsync(),PUTAsync() was to swallow any deserialization exceptions and return a default value for the TestResult.Result property. While this works fine for 99% of scenarios, it's not apparent for the developer why exactly it's null such as in the case of #588
From now on, if an exception occurs with deserialization on successful requests, it will not be swallowed. The test will fail with an exception.
</details>
<details><summary>'SendRedirectAsync()' method signature change</summary>
The method signature has been updated to the following:
SendRedirectAsync(string location, bool isPermanent = false, bool allowRemoteRedirects = false)
This would be a breaking change only if you were doing any of the following:
Redirecting to a remote url instead of a local url. In which case simply set allowRemoteRedirects to true. otherwise the new behavior will throw an exception.
this change was done to prevent open redirect attacks by default.
A cancellation token was passed in to the method. The new method does not support cancellation due to the underlying Results.Redirect(...) methods do not support
cancellation.
</details>
<details><summary>Minor behavior change for exception handling with 'Post Processors'</summary>
Previously when an exception is handled by a post-processor the captured exception would only be thrown out to the middleware pipeline in case the post-processor hasn't already written to the response stream. Detecting this reliably has proven to be difficult and now your post-processor must explicitly call the following method if it's handling the exception itself and don't need the exception to be thrown out to the pipeline.
public class ExceptionProcessor : IPostProcessor<Request, Response>
{
public async Task PostProcessAsync(IPostProcessorContext<Request, Response> ctx, ...)
{
ctx.MarkExceptionAsHandled();
//do your exception handling after this call
}
}
</details>
<details><summary>Rename 'UseAntiForgery()' method</summary>
The builder.Services.UseAntiForgery() extension method has been renamed to .UseAntiforgeryFE() in order to avoid confusion.
</details>
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
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.
Configure() method #569Nothing 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>Api Client generation using Kiota</summary>
Kiota is now the recommended way to generate API Clients. Please see the documentation on how to use it. The previous methods for client generation using NSwag are still valid but may be deprecated at a future point in time.
</details>
<details><summary>Attribute based Pre/Post Processor configuration</summary>
When doing simple attribute based endpoint configuration instead of using the Configure() method, you can now add pre/post processors to the endpoint like so:
[HttpPost("/test"),
PreProcessor<PreProc>,
PostProcessor<PostProc>]
sealed class Endpoint : Endpoint<Request, Response>
{
public override Task HandleAsync(Request r, CancellationToken c)
{
...
}
}
</details>
<details><summary>Ability to specify descriptions with ACL generation</summary>
You can now specify a description/xml doc summary for individual permission items when source generating them. See the documentation on how to use it.
</details>
<details><summary>[HideFromDocs] attribute for removing properties from Swagger schema</summary>
sealed class MyRequest
{
[HideFromDocs]
public int Internal { get; set; } //this will not appear in swagger schema
public string Name { get; set; }
}
</details>
<details><summary>Treat validation rules with conditions attached as optional properties in Swagger spec.</summary>
If a validation rule is conditional, like in the example below, that particular DTO property will be considered optional and will not be marked as required in the Swagger Schema.
RuleFor(x => x.Id) //this property will be a required property in the swagger spec
.NotEmpty(); //because there's no 'When(...)' condition attached to it.
RuleFor(x => x.Age) //this will be an optional property in swagger spec because
.NotEmpty() //'NotEmpty()' is conditional.
.When(SomeCondition);
For this to work, the rules have to be written separately as above. I.e. the .When(...) condition must proceed immediately after the .NotEmpty() or .NotNull() rule.
</details>
<details><summary>Support for 'UrlSegmentApiVersionReader' of 'Asp.Versioning.Http'</summary>
Only the HeaderApiVersionReader was previously supported. Support for doing versioning based on URL segments using the Asp.Versioning.Http package is now working
correctly.
</details>
<details><summary>Automatically forward endpoint attribute annotations</summary>
When using attribute annotations to configure endpoints, any custom attributes were not automatically added to endpoint metadata previously. You would've had to do the following and use the Configure() method for configuration instead if you had some custom attributes you needed to use:
Description(b => b.WithMetadata(new CustomAttribute()));
Now, all custom attributes are automatically added/forwarded to endpoint metadata when you configure endpoints using attribute annotations.
[HttpGet("/"), CustomAttribute]
public class Endpoint : Endpoint<Request, Response>
Note: you still have to choose one of the strategies for endpoint configuration (attributes or configure method). Mixing both is not allowed. </details>
<details><summary>Optimize source generators</summary>
All source generators were refactored to reduce GC pressure by reducing heap allocations. Allocations are now mostly done when there's actually a need to regenerate the source code.
</details>
<details><summary>Micro optimization with 'Concurrent Dictionary' usage</summary>
Concurrent dictionary GetOrAdd() overload with lambda parameter seems to perform a bit better in .NET 8. All locations that were using the other overload was changed to use the overload with the lambda.
</details>
<details><summary>'JsonNamingPolicy.SnakeCaseLower' was causing incorrect Swagger Schema properties</summary>
Snake case policy did not exist before .NET 8, so it's usage was not accounted for in the Swagger operation processor, which has now been corrected.
</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
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>Support for .Net 8.0</summary>
The project is now developed and built using .NET 8.0 while supporting .NET 6 & 7 as well. You can upgrade your existing projects simply by targeting .NET 8
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
</Project>
The .NET 8 Request Delegate Generator is not yet compatible with FastEndpoints as FE has it's own endpoint mapping and model binding system which will require a complete rewrite as a Source Generator to properly support Native AOT. We're currently investigating ways to achieve that but cannot give a timeframe on completion as it's a massive undertaking. You can see our internal discussion about this matter on discord.
</details>
<details><summary>Simpler way to register Pre/Post Processors with DI support</summary>
Processors can now be configured just by specifying the type of the processor without the need for instantiating them yourself.
public class MyEndpoint : EndpointWithoutRequest
{
public override void Configure()
{
...
PreProcessor<PreProcessorOne>();
PreProcessor<PreProcessorTwo>();
}
}
While the old PreProcessors(...) method continues to work, the new method automatically resolves any constructor injected dependencies without you having to manually register the processors in DI. </details>
<details><summary>Exception handling capability for Post-Processors</summary>
Post-Processors can now handle uncaught exceptions as an alternative to an exception handling middleware. Please see the documentation page for details.
</details>
<details><summary>Shared state support for global Pre/Post Processors</summary>
Global Pre/Post Processors now have shared state support with the following two newly added abstract types:
</details>
<details><summary>Ability to hide the error reason in the JSON response when using the default exception handler middleware</Summary>
The actual error reason can now be hidden from the client by configuring the exception handler middleware like so:
app.UseDefaultExceptionHandler(useGenericReason: true);
</details>
<details><summary>Auto binding collections of form files fails after first request</summary>
An object disposed error was being thrown in subsequent requests for file collection submissions due to a flaw in the model binding logic, which has now been corrected.
</details>
<details><summary>Incorrect validation error field names when nested request DTO property has [FromBody] attribute</summary>
JSON error responses didn't correctly render the deeply nested property chain/paths when the following conditions were met:
[FromBody] attributeThis has been fixed to correctly render the property chain of the actual item that caused the validation failure.
More info here.
</details>
<details><summary>Test assertions couldn't be done on ProblemDetails DTO</summary>
The ProblemDetails DTO properties had private setter properties preventing STJ from being able to deserialize the JSON which has now been corrected.
</details>
<details><summary>Pre/Post Processor interface changes</summary>
Due to the Processor related new features introduced in this release, the *ProcessAsync(...) method signatures had to be changed. The previous arguments are still available but they have been grouped/pushed into a processor context object. The new method signatures look like the following. Migrating your existing pre/post processors shouldn't take more than a few minutes.
PreProcessor Signature:
sealed class MyProcessor : IPreProcessor<MyRequest>
{
public Task PreProcessAsync(IPreProcessorContext<MyRequest> ctx, CancellationToken c)
{
...
}
}
PostProcessor Signature:
sealed class MyProcessor : IPostProcessor<MyRequest, MyResponse>
{
public Task PostProcessAsync(IPostProcessorContext<MyRequest, MyResponse> ctx, CancellationToken c)
{
...
}
}
</details>
<details><summary>AddJWTBearerAuth() default claim type mapping behavior change</summary>
The JwtSecurityTokenHandler.DefaultInboundClaimTypeMap static dictionary is presently used by ASP.NET for mapping claim types for inbound claim type mapping. In most cases people use JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear() to not have long claim types such as http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier as the claim type for the sub claim for example.
The default behavior has now been changed to make the claim types not use the SOAP type identifiers like above. If for some reason you'd like to revert to the old behavior, it can be achieved like so:
.AddJWTBearerAuth("jwt_signing_key", o =>
{
o.MapInboundClaims = true;
});
If using the new default behavior, it is highly recommended to invalidate any previously issued JWTs by resetting your JWT signing keys or any other means neccessary to avoid any potential issues with claim types not matching. This obviously means your clients/users will have re-login (obtain new JWTs). If that's not an option, simply set
.MapInboundClaims = true;as mentioned above to use the previous behavior.
See #526 for more info.
</details>
Nothing published for this version
Nothing published for this version
Tests couldn't assert on 'ProblemDetails' DTO due to having private property setters
<details><summary>Tests couldn't assert on 'ProblemDetails' DTO due to having private property setters</summary>
Trying to assert on properties of ProblemDetails when testing, STJ could not deserialize the error JSON response due to the DTO having incorrect access modifiers for public properties, which has been corrected with this patch release.
</details>
Auto binding collections of form files fails after first request
<details><summary>Auto binding collections of form files fails after first request</summary>
An object disposed error was being thrown in subsequent requests for file collection submissions due to a flaw in the model binding logic, which has now been corrected.
</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
[//]: # (## Minor Breaking Change ⚠️)
FastEndpoints needs sponsorship to sustain the project. Please help out if you can.
<details><summary>Model binding collections of 'IFormFile' from incoming form data</summary>
The following types of properties can now be automatically model bound from file form data fields.
class Request
{
public IEnumerable<IFormFile> Cars { get; set; }
public List<IFormFile> Boats { get; set; }
public IFormFileCollection Jets { get; set; }
}
When submitting collections of form files, the incoming field names can be one of the following 3 formats:
| Format One | Format Two | Format Three | |
|---|---|---|---|
| # 1 | Cars | Boats[1] | Jets[] |
| # 2 | Cars | Boats[2] | Jets[] |
</details>
<details><summary>Multiple request examples for Swagger</summary>
Multiple examples for the request DTO can be specified by either setting the ExampleRequest property of the Summary class multiple times or adding to
the RequestExamples collection like so:
Summary(s =>
{
s.ExampleRequest = new MyRequest {...};
s.ExampleRequest = new MyRequest {...};
s.RequestExamples.Add(new MyRequest {...});
});
</details>
<details><summary>Anti-forgery token validation middleware</summary>
Please see the documentation page for details of this feature.
Thank you Wàn Yǎhǔ for the contribution.
</details>
<details><summary>Support for simple validation with 'DataAnnotations'</summary>
//enable the feature at startup.
app.UseFastEndpoints(c.Validation.EnableDataAnnotationsSupport = true;)
//decorate properties with DataAnnotations attributes
sealed class Request
{
[Required, StringLength(10, MinimumLength = 2)]
public string Name { get; set; }
}
//can be used together with `FluentValidations` rules
sealed class MyValidator : Validator<Request>
{
public MyValidator()
{
RuleFor(x => x.Id).InclusiveBetween(10, 100);
}
}
Note: there's no swagger integration for data annotations.
Thank you Wàn Yǎhǔ for the contribution.
</details>
<details><summary>Prevent swallowing of STJ exceptions in edge cases</summary>
If STJ throws internally after it has started writing to the response stream, those exceptions will no longer be swallowed. This can happen in rare cases such as when the DTO being serialized has an infinite recursion depth issue.
</details>
<details><summary>Deep nested collection property name serialization support with 'AddError(expression, ...)' method</summary>
When doing a manual add error call like this:
AddError(r => r.ObjectArray[i].Test, "Some error message");
Previous output was:
New output:
Thank you Mattis Bratland for the contribution
</details>
<details><summary>Misc. improvements</summary>
</details>
<details><summary>Response DTO property description not being detected</summary>
When the response DTO property description was provided by a lambda expression and the respective DTO property is also decorated with [JsonPropertyName] attribute,
the Swagger operation processor was not correctly setting the property description in generated Swagger spec. See #511 for more details.
</details>
Nothing published for this version
One column per quarter.