Make References and BatchId required for RecAction invoke

Updated InvokeRecActionViewCommand and InvokeReferencesDto to require non-null References and BatchId. Updated RecActionApi.InvokeAsync to require InvokeReferences and added an overload accepting batchId for convenience. This enforces stricter input validation and aligns client and backend requirements.
This commit is contained in:
2026-04-16 09:50:52 +02:00
parent c27ed1e744
commit b1924f2a4a
2 changed files with 15 additions and 3 deletions

View File

@@ -18,12 +18,12 @@ namespace ReC.Application.RecActions.Commands;
public record InvokeRecActionViewCommand : IRequest
{
public RecActionViewDto Action { get; set; } = null!;
public InvokeReferencesDto? References { get; set; }
public required InvokeReferencesDto References { get; set; }
}
public record InvokeReferencesDto
{
public string? BatchId { get; init; }
public required string BatchId { get; init; }
public string? Reference1 { get; init; }
public string? Reference2 { get; init; }
public string? Reference3 { get; init; }