Skip to content

Commit

Permalink
Expose OpenApiOperation.Tags in OperationModelBase (#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 committed Apr 12, 2024
1 parent 9641df8 commit 6b49eef
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 OperationModelBase(JsonSchema exceptionSchema, OpenApiOperation operat
/// <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 6b49eef

Please sign in to comment.