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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user