Remove redundant Result property validation in InsertObject

Removed the rule requiring Result to have StatusId, Info, or Error set. Now only ResultActionId is required when Result is present.
This commit is contained in:
2026-03-30 13:20:21 +02:00
parent 0342b9e0c6
commit fde9735b27

View File

@@ -57,10 +57,6 @@ public class InsertObjectProcedureValidator : AbstractValidator<InsertObjectProc
RuleFor(x => x.Result!.ActionId)
.NotNull()
.WithMessage("RESULT requires ResultActionId (maps to @pRESULT_ACTION_ID).");
RuleFor(x => x.Result!)
.Must(r => r.StatusId != null || r.Info != null || r.Error != null)
.WithMessage("RESULT requires at least one of: StatusId, Info, or Error.");
});
// ENDPOINT_PARAMS validation