forked from loafle/openapi-generator-original
use case insensitive sort
This commit is contained in:
@@ -27,8 +27,8 @@ public class DynamicSwaggerConfig extends BeanConfig {
|
||||
servers.add(config.getName());
|
||||
}
|
||||
}
|
||||
Collections.sort(clients);
|
||||
Collections.sort(servers);
|
||||
Collections.sort(clients, String.CASE_INSENSITIVE_ORDER);
|
||||
Collections.sort(servers, String.CASE_INSENSITIVE_ORDER);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -40,8 +40,8 @@ public class SwaggerResource {
|
||||
}
|
||||
}
|
||||
|
||||
Collections.sort(clients);
|
||||
Collections.sort(servers);
|
||||
Collections.sort(clients, String.CASE_INSENSITIVE_ORDER);
|
||||
Collections.sort(servers, String.CASE_INSENSITIVE_ORDER);
|
||||
}
|
||||
|
||||
@GET
|
||||
|
||||
Reference in New Issue
Block a user