Skip to content

Commit d6a6b53

Browse files
Update src/Microsoft.OpenApi/Validations/Rules/JsonSchemaRules.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent f9aea51 commit d6a6b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Validations/Rules/JsonSchemaRules.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static class JsonSchemaRules
3737
// examples
3838
context.Enter("examples");
3939

40-
if (jsonSchema.GetExamples() != null)
40+
if (jsonSchema.GetExamples() is { } examples)
4141
{
4242
for (int i = 0; i < jsonSchema.GetExamples().Count(); i++)
4343
{

0 commit comments

Comments
 (0)