Skip to content

Paths are not copied over in the copy constructor of OpenApiPaths #1007

@irvinesunday

Description

@irvinesunday

To repro:

In the OpenApiDocumentTest.cs, add the below test:

[Fact]
private void ShouldCopyDocument()
{
    var doc = new OpenApiDocument(AdvancedDocument);
    Assert.NotEmpty(doc.Paths);
    Assert.Equal(2, doc.Paths.Count);
}

Note that the above test fails on both assertions.

Metadata

Metadata

Assignees

Labels

priority:p1High priority but not blocking. Causes major but not critical loss of functionality SLA <=7daystype:bugA broken experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions