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 fe0265d commit ad0417eCopy full SHA for ad0417e
test/Microsoft.OpenApi.Tests/Models/OpenApiComponentsTests.cs
@@ -554,17 +554,12 @@ public void SerializeTopLevelReferencingComponentsAsYamlWorks()
554
actual.Should().Be(expected);
555
}
556
557
- [Fact(Skip = "Issue #157 We are not serializing top-level reference in components correctly")]
+ [Fact]
558
public void SerializeTopLevelSelfReferencingComponentsAsYamlWorks()
559
{
560
// Arrange
561
var expected = @"schemas:
562
- schema1:
563
- $ref: '#/components/schemas/schema1'";
564
-
565
- // Current output
566
- // schemas:
567
- // schema1: { }
+ schema1: { }";
568
569
// Act
570
var actual = TopLevelSelfReferencingComponents.SerializeAsYaml(OpenApiSpecVersion.OpenApi3_0_0);
0 commit comments