mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 10:10:48 +01:00
Change plugin filtering
This commit is contained in:
@@ -46,13 +46,10 @@ public class OpenApiDocumentWrapper
|
|||||||
{
|
{
|
||||||
foreach (var tag in operation.Tags)
|
foreach (var tag in operation.Tags)
|
||||||
{
|
{
|
||||||
var lowercaseTag = tag.Name.ToLower();
|
if (tag.Name == "plugins")
|
||||||
if (lowercaseTag == "plugins")
|
|
||||||
continue;
|
continue;
|
||||||
else if (lowercaseTag.Contains("plugin "))
|
|
||||||
pluginsKey = lowercaseTag.Replace("plugin ", "");
|
|
||||||
else
|
else
|
||||||
pluginsKey = lowercaseTag;
|
pluginsKey = tag.Name;
|
||||||
|
|
||||||
if (plugins.TryGetValue(pluginsKey, out var p))
|
if (plugins.TryGetValue(pluginsKey, out var p))
|
||||||
p.Add(new(method.ToString(), path, operation));
|
p.Add(new(method.ToString(), path, operation));
|
||||||
|
|||||||
Reference in New Issue
Block a user