hammerharshbargOccasional VisitorJoined 2 years ago1 Post1 LikeLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Generating a schema for a generic list in c# It looks like you want to generate a specific XML structure in Swagger for your .NET API project. Swagger may not infer the desired structure automatically for pc. To achieve the structure you've shown, you can use XML attributes to specify the structure explicitly. Heres how you can modify your class to achieve the desired XML structure: