Skip to content

Commit

Permalink
fix: remove empty tag for controller without prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
SedativeEffect committed Jun 25, 2024
1 parent 96849d3 commit 8b2d633
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ internal virtual Dictionary<string, OpenRpcTag> GetControllersTags()
var tags = apiDescriptionsProvider.ApiDescriptionGroups.Items
.SelectMany(static g => g.Items)
.Select(x => serverOptions.DefaultDataJsonSerializerOptions.ConvertName((x.ActionDescriptor as ControllerActionDescriptor)!.ControllerName))
.Where(x => !string.IsNullOrEmpty(x))
.Distinct();

return tags.ToDictionary(static x => x, static x => new OpenRpcTag(x));
Expand Down

0 comments on commit 8b2d633

Please sign in to comment.