Skip to content

Commit 68b25cc

Browse files
committed
fix: aligns callback parameter name with interface
Signed-off-by: Vincent Biret <[email protected]>
1 parent 2a10cd9 commit 68b25cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ public void SerializeAsV31(IOpenApiWriter writer)
117117
}
118118

119119
/// <inheritdoc/>
120-
public IOpenApiCallback CopyReferenceAsTargetElementWithOverrides(IOpenApiCallback openApiExample)
120+
public IOpenApiCallback CopyReferenceAsTargetElementWithOverrides(IOpenApiCallback source)
121121
{
122122
// the copy here is never called since callbacks do not have any overridable fields.
123123
// if the spec evolves to include overridable fields for callbacks, the serialize methods will need to call this copy method.
124-
return openApiExample is OpenApiCallback ? new OpenApiCallback(this) : openApiExample;
124+
return source is OpenApiCallback ? new OpenApiCallback(this) : source;
125125
}
126126

127127
/// <inheritdoc/>

0 commit comments

Comments
 (0)