Asp.Net-Core-Inventory-Order-Management-System icon indicating copy to clipboard operation
Asp.Net-Core-Inventory-Order-Management-System copied to clipboard

Missing Swagger Configuration for XML Comments

Open ZohaiAli opened this issue 5 months ago • 0 comments

Problem: Swagger documentation generate karte waqt XML comments use nahi kiye gaye. Isse controller/action summaries Swagger UI me nahi dikhte — documentation incomplete lagti hai.

Fix Suggestion: Add XML comment inclusion in AddSwaggerGen():

var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
c.IncludeXmlComments(xmlPath);


ZohaiAli avatar Oct 18 '25 13:10 ZohaiAli