Skip to content

Commit

Permalink
Expose OpenApiOperation.Tags in OperationModelBase (RicoSuter#4807)
Browse files Browse the repository at this point in the history
* Expose OpenApiOperation.Tags in OperationModelBase

* Silly me, fix type
  • Loading branch information
fauzanzaid authored and lahma committed Jun 13, 2024
1 parent ef3fcda commit 07d1867
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NSwag.CodeGeneration/Models/OperationModelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ protected abstract TResponseModel CreateResponseModel(OpenApiOperation operation
/// <summary>Gets the operation ID.</summary>
public string Id => _operation.OperationId;

/// <summary>Gets the operation tags.</summary>
public List<string> Tags => _operation.Tags;

/// <summary>Gets or sets the HTTP path (i.e. the absolute route).</summary>
public string Path { get; set; }

Expand Down

0 comments on commit 07d1867

Please sign in to comment.