diff --git a/src/Tochka.JsonRpc.OpenRpc/Services/OpenRpcDocumentGenerator.cs b/src/Tochka.JsonRpc.OpenRpc/Services/OpenRpcDocumentGenerator.cs index e5562cf..2947972 100644 --- a/src/Tochka.JsonRpc.OpenRpc/Services/OpenRpcDocumentGenerator.cs +++ b/src/Tochka.JsonRpc.OpenRpc/Services/OpenRpcDocumentGenerator.cs @@ -65,6 +65,7 @@ internal virtual Dictionary 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));