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 7855b97 commit b7a070bCopy full SHA for b7a070b
test/Microsoft.OpenApi.Readers.Tests/V31Tests/RelativeReferenceTests.cs
@@ -505,6 +505,10 @@ public void ExitsEarlyOnCyclicalReferences()
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
+ var parentSchemaRef = Assert.IsType<OpenApiSchemaReference>(categorySchema.Properties["parent"]);
510
+ Assert.Equal("#/components/schemas/Category", parentSchemaRef.Reference.ReferenceV3);
511
+ Assert.NotNull(parentSchemaRef.Target);
512
}
513
514
0 commit comments