Skip to content

Commit b7a070b

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@ public void ExitsEarlyOnCyclicalReferences()
505505
Assert.Null(tagsSchemaRef.Items);
506506
Assert.Equal("#/components/schemas/Category/properties/parent/properties/tags", tagsSchemaRef.Reference.ReferenceV3);
507507
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);
508512
}
509513
}
510514
}

0 commit comments

Comments
 (0)