Skip to content

Commit

Permalink
fix: missing null prop operator on parameter reference
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Jan 30, 2025
1 parent 227d99d commit 019eb99
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal OpenApiParameterReference(OpenApiParameter target, string referenceId):
}

/// <inheritdoc/>
public string Name { get => Target.Name; }
public string Name { get => Target?.Name; }

/// <inheritdoc/>
public string Description
Expand Down Expand Up @@ -86,10 +86,10 @@ public string Description
public bool Explode { get => Target?.Explode ?? default; }

/// <inheritdoc/>
public IDictionary<string, OpenApiMediaType> Content { get => Target.Content; }
public IDictionary<string, OpenApiMediaType> Content { get => Target?.Content; }

/// <inheritdoc/>
public IDictionary<string, IOpenApiExtension> Extensions { get => Target.Extensions; }
public IDictionary<string, IOpenApiExtension> Extensions { get => Target?.Extensions; }

/// <inheritdoc/>
public override IOpenApiParameter CopyReferenceAsTargetElementWithOverrides(IOpenApiParameter source)
Expand Down

0 comments on commit 019eb99

Please sign in to comment.