diff --git a/Needlework.Net/Models/OpenApiDocumentWrapper.cs b/Needlework.Net/Models/OpenApiDocumentWrapper.cs index 8a8ccc5..83daa82 100644 --- a/Needlework.Net/Models/OpenApiDocumentWrapper.cs +++ b/Needlework.Net/Models/OpenApiDocumentWrapper.cs @@ -46,13 +46,10 @@ public class OpenApiDocumentWrapper { foreach (var tag in operation.Tags) { - var lowercaseTag = tag.Name.ToLower(); - if (lowercaseTag == "plugins") + if (tag.Name == "plugins") continue; - else if (lowercaseTag.Contains("plugin ")) - pluginsKey = lowercaseTag.Replace("plugin ", ""); else - pluginsKey = lowercaseTag; + pluginsKey = tag.Name; if (plugins.TryGetValue(pluginsKey, out var p)) p.Add(new(method.ToString(), path, operation));