Copy constructor doesn't create new OpenApiPathItem
objects when creating new instance of OpenApiPaths
#1193
Labels
type:bug
A broken experience
Describe the bug
Copy constructors doesn't create a new instance of
OpenApiPathItem
and its constituent properties onnew 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.The text was updated successfully, but these errors were encountered: