Allow FastEndpoints EmptyRequest in Elsa endpoint wrappers

Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-09-04 21:43:29 +00:00 committed by GitHub
parent 750549c797
commit 016ffe5d8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ public abstract class ElsaEndpointWithoutRequest<TResponse> : EndpointWithoutReq
}
}
public class ElsaEndpoint<TRequest, TResponse> : Endpoint<TRequest, TResponse> where TRequest : notnull, new() where TResponse : notnull
public class ElsaEndpoint<TRequest, TResponse> : Endpoint<TRequest, TResponse> where TRequest : notnull where TResponse : notnull
{
protected void ConfigurePermissions(params string[] permissions)
{
@ -49,7 +49,7 @@ public class ElsaEndpoint<TRequest, TResponse> : Endpoint<TRequest, TResponse> w
}
}
public class ElsaEndpoint<TRequest, TResponse, TMapper> : Endpoint<TRequest, TResponse, TMapper> where TRequest : notnull, new() where TResponse : notnull where TMapper : class, IMapper, new()
public class ElsaEndpoint<TRequest, TResponse, TMapper> : Endpoint<TRequest, TResponse, TMapper> where TRequest : notnull where TResponse : notnull where TMapper : class, IMapper, new()
{
protected void ConfigurePermissions(params string[] permissions)
{
@ -60,7 +60,7 @@ public class ElsaEndpoint<TRequest, TResponse, TMapper> : Endpoint<TRequest, TRe
}
}
public class ElsaEndpoint<TRequest> : Endpoint<TRequest> where TRequest : notnull, new()
public class ElsaEndpoint<TRequest> : Endpoint<TRequest> where TRequest : notnull
{
protected void ConfigurePermissions(params string[] permissions)
{

View file

@ -12,7 +12,7 @@ namespace Elsa.Workflows.Api.Endpoints.RuntimeAdmin.Resume;
/// Idempotent on the success path.
/// </summary>
[PublicAPI]
internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpointWithoutRequest<StatusResponse>
internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpoint<EmptyRequest, StatusResponse>
{
public override void Configure()
{