Skip to content

Commit 88bb6b9

Browse files
committed
Update ValidationRuleSet.cs
1 parent bc0cebb commit 88bb6b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Validations/ValidationRuleSet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void Add(ValidationRule rule)
134134
throw new OpenApiException(SRResource.Validation_RuleAddTwice);
135135
}
136136

137-
_rules[rule.ElementType].Add(rule);
137+
item.Add(rule);
138138
}
139139

140140
/// <summary>

0 commit comments

Comments
 (0)