Skip to content

Commit 7855b97

Browse files
committed
chore: adds additional validation to test
Signed-off-by: Vincent Biret <[email protected]>
1 parent 06cc025 commit 7855b97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Microsoft.OpenApi.Readers.Tests/V31Tests/RelativeReferenceTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,10 @@ public void ExitsEarlyOnCyclicalReferences()
501501
document.AddComponent("Category", categorySchema);
502502
document.RegisterComponents();
503503

504-
Assert.Null(categorySchema.Properties["tags"].Items);
504+
var tagsSchemaRef = Assert.IsType<OpenApiSchemaReference>(categorySchema.Properties["tags"]);
505+
Assert.Null(tagsSchemaRef.Items);
506+
Assert.Equal("#/components/schemas/Category/properties/parent/properties/tags", tagsSchemaRef.Reference.ReferenceV3);
507+
Assert.Null(tagsSchemaRef.Target);
505508
}
506509
}
507510
}

0 commit comments

Comments
 (0)