Skip to content

Commit 45e40fa

Browse files
committed
fix: returns reference instead of null
Signed-off-by: Vincent Biret <[email protected]>
1 parent 8361069 commit 45e40fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/References/OpenApiPathItemReference.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public string Description
7373
/// <inheritdoc/>
7474
public override IOpenApiPathItem CopyReferenceAsTargetElementWithOverrides(IOpenApiPathItem source)
7575
{
76-
return source is OpenApiPathItem ? new OpenApiPathItem(this) : null;
76+
return source is OpenApiPathItem ? new OpenApiPathItem(this) : source;
7777
}
7878

7979
/// <inheritdoc/>

0 commit comments

Comments
 (0)