From 016ffe5d8d36d93a8dd3beb7fcbf0afac0ed38af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Sep 2026 21:43:29 +0000 Subject: [PATCH] Allow FastEndpoints EmptyRequest in Elsa endpoint wrappers Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com> --- src/common/Elsa.Api.Common/Abstractions/Endpoints.cs | 6 +++--- .../Endpoints/RuntimeAdmin/Resume/Endpoint.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/Elsa.Api.Common/Abstractions/Endpoints.cs b/src/common/Elsa.Api.Common/Abstractions/Endpoints.cs index 82b6049f9..dd075a919 100644 --- a/src/common/Elsa.Api.Common/Abstractions/Endpoints.cs +++ b/src/common/Elsa.Api.Common/Abstractions/Endpoints.cs @@ -38,7 +38,7 @@ public abstract class ElsaEndpointWithoutRequest : EndpointWithoutReq } } -public class ElsaEndpoint : Endpoint where TRequest : notnull, new() where TResponse : notnull +public class ElsaEndpoint : Endpoint where TRequest : notnull where TResponse : notnull { protected void ConfigurePermissions(params string[] permissions) { @@ -49,7 +49,7 @@ public class ElsaEndpoint : Endpoint w } } -public class ElsaEndpoint : Endpoint where TRequest : notnull, new() where TResponse : notnull where TMapper : class, IMapper, new() +public class ElsaEndpoint : Endpoint where TRequest : notnull where TResponse : notnull where TMapper : class, IMapper, new() { protected void ConfigurePermissions(params string[] permissions) { @@ -60,7 +60,7 @@ public class ElsaEndpoint : Endpoint : Endpoint where TRequest : notnull, new() +public class ElsaEndpoint : Endpoint where TRequest : notnull { protected void ConfigurePermissions(params string[] permissions) { diff --git a/src/modules/Elsa.Workflows.Api/Endpoints/RuntimeAdmin/Resume/Endpoint.cs b/src/modules/Elsa.Workflows.Api/Endpoints/RuntimeAdmin/Resume/Endpoint.cs index 11c3acab4..3061a991b 100644 --- a/src/modules/Elsa.Workflows.Api/Endpoints/RuntimeAdmin/Resume/Endpoint.cs +++ b/src/modules/Elsa.Workflows.Api/Endpoints/RuntimeAdmin/Resume/Endpoint.cs @@ -12,7 +12,7 @@ namespace Elsa.Workflows.Api.Endpoints.RuntimeAdmin.Resume; /// Idempotent on the success path. /// [PublicAPI] -internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpointWithoutRequest +internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpoint { public override void Configure() {