Open EynsherKiel opened 3 weeks ago
btw, my workaround
public class SwaggerEndPointProviderFixedFilter(
IOptionsMonitor<List<SwaggerEndPointOptions>> swaggerEndPoints,
OcelotSwaggerGenOptions options) : SwaggerEndPointProvider(
swaggerEndPoints: swaggerEndPoints,
options: options), ISwaggerEndPointProvider
{
public new IReadOnlyList<SwaggerEndPointOptions> GetAll() => [.. base.GetAll().OrderByDescending(x => x.Key == "gateway")];
}
services.AddTransient<ISwaggerEndPointProvider, SwaggerEndPointProviderFixedFilter>();
Hello there,
I suggest adding the [it self gateway first definition] property to ensure that Gateway is the first definition in the list. Full code implementation in the comments, thanks!