Skip to content

Commit

Permalink
fix: aligns callback parameter name with interface
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
  • Loading branch information
baywet committed Jan 24, 2025
1 parent 2a10cd9 commit 68b25cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ public void SerializeAsV31(IOpenApiWriter writer)
}

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

/// <inheritdoc/>
Expand Down

0 comments on commit 68b25cc

Please sign in to comment.