Skip to content

Commit

Permalink
Fix position node for error 2.46.1 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielOda authored Jun 21, 2024
1 parent ffaedc0 commit a7797b2
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,16 @@ internal class ValidateHelper : ValidateHelperBase
private readonly RelationManager relationManager;

private readonly IParamsParam tableParam;
private readonly IParamsParamArrayOptions arrayOptions;
private readonly IValueTag<uint?> indexAttribute;

public ValidateHelper(IValidate test, ValidatorContext context, List<IValidationResult> results, IParamsParam tableParam, IParamsParamArrayOptions arrayOptions)
: base(test, context, results)
{
this.tableParam = tableParam;
this.relationManager = context.ProtocolModel.RelationManager;
this.indexAttribute = arrayOptions.Index;
this.arrayOptions = arrayOptions;
relationManager = context.ProtocolModel.RelationManager;
indexAttribute = arrayOptions.Index;
}

public void Validate()
Expand All @@ -106,7 +108,7 @@ public void Validate()
// Missing
if (status.HasFlag(GenericStatus.Missing))
{
results.Add(Error.MissingAttribute(test, tableParam, indexAttribute, tableParam.Id.RawValue));
results.Add(Error.MissingAttribute(test, tableParam, arrayOptions, tableParam.Id.RawValue));
return;
}

Expand Down

0 comments on commit a7797b2

Please sign in to comment.