Open
Description
Describe the bug
Copy constructors doesn't create a new instance of OpenApiPathItem
and its constituent properties on new OpenApiDocument(document)
.
To Reproduce
I have created a breaking test to demonstrate this:
OpenAPI.NET/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs
Lines 1341 to 1358 in d5a5f8a
This is in the branch:
is/copy-ctrs
Expected behavior
In the test, I change the operationId of the cloned OpenAPI document. I don't expect the operationId
of the original OpenAPI document to also be updated.