Back in SS Swagger 1.2 days, I could do something like this:
var requestType = Utilities.GetTypesWhere(m => m.Namespace?.StartsWith("XXXXX") == true && m.Name.EqualsIgnoreCase(operation.OperationId)).FirstOrDefault();
Basically, I could take the operation name and find the starting type. Not super efficient, but it worked. Now with the new naming conventions, I can’t do that.
I add my own custom annotations that I then use to alter the default operation descriptions and summary info.
Any way we can get the OperationFilter or ApiDeclarationFilter
to include the actual Types for the request/response DTOs? Or at least expose a bunch of those private static methods that are in OpenApiService so we can take our known types and recreate the exact OperationId so we can “retrace” and find the original types?