We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06cc025 commit 7855b97Copy full SHA for 7855b97
test/Microsoft.OpenApi.Readers.Tests/V31Tests/RelativeReferenceTests.cs
@@ -501,7 +501,10 @@ public void ExitsEarlyOnCyclicalReferences()
501
document.AddComponent("Category", categorySchema);
502
document.RegisterComponents();
503
504
- Assert.Null(categorySchema.Properties["tags"].Items);
+ 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);
508
}
509
510
0 commit comments