Asp.Net-Core-Inventory-Order-Management-System
Asp.Net-Core-Inventory-Order-Management-System copied to clipboard
Missing Swagger Configuration for XML 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);