Skip to content

Missing Swagger Configuration for XML Comments #40

@ZohaiAli

Description

@ZohaiAli

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);


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions