From b18f425257f1bf68c3e12f008a7cb7b815776db1 Mon Sep 17 00:00:00 2001 From: estrogen elf <87099578+BlossomiShymae@users.noreply.github.com> Date: Mon, 5 May 2025 00:19:29 -0500 Subject: [PATCH] Match sorting with that of https://swagger.dysolix.dev --- Needlework.Net/Models/OpenApiDocumentWrapper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Needlework.Net/Models/OpenApiDocumentWrapper.cs b/Needlework.Net/Models/OpenApiDocumentWrapper.cs index 83daa82..b949395 100644 --- a/Needlework.Net/Models/OpenApiDocumentWrapper.cs +++ b/Needlework.Net/Models/OpenApiDocumentWrapper.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Linq; using Microsoft.OpenApi.Models; namespace Needlework.Net.Models; @@ -63,6 +64,10 @@ public class OpenApiDocumentWrapper } } + plugins = new(plugins.ToDictionary( + kvp => kvp.Key, + kvp => kvp.Value.OrderBy(x => x.Path).ToList())); + Plugins = plugins; } }