Skip to content

Commit e4ea7f0

Browse files
committed
fixed tests
1 parent 5c9817c commit e4ea7f0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ namespace Microsoft.OpenApi
12481248
public static class OpenApiSchemaRules
12491249
{
12501250
public static Microsoft.OpenApi.ValidationRule<Microsoft.OpenApi.IOpenApiSchema> ValidateSchemaDiscriminator { get; }
1251+
public static Microsoft.OpenApi.ValidationRule<Microsoft.OpenApi.IOpenApiSchema> ValidateSchemaPropertyHasValue { get; }
12511252
public static bool TraverseSchemaElements(string discriminatorName, System.Collections.Generic.IList<Microsoft.OpenApi.IOpenApiSchema>? childSchema) { }
12521253
public static bool ValidateChildSchemaAgainstDiscriminator(Microsoft.OpenApi.IOpenApiSchema schema, string? discriminatorName) { }
12531254
}

test/Microsoft.OpenApi.Tests/Validations/ValidationRuleSetTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public void RuleSetConstructorsReturnsTheCorrectRules()
5353
Assert.Empty(ruleSet_4.Rules);
5454

5555
// Update the number if you add new default rule(s).
56-
Assert.Equal(20, ruleSet_1.Rules.Count);
57-
Assert.Equal(20, ruleSet_2.Rules.Count);
56+
Assert.Equal(21, ruleSet_1.Rules.Count);
57+
Assert.Equal(21, ruleSet_2.Rules.Count);
5858
Assert.Equal(3, ruleSet_3.Rules.Count);
5959
}
6060

0 commit comments

Comments
 (0)