Closed lonix1 closed 3 years ago
Okay the docs are a little confusing, but I figured it out!
To get enum descriptions from <summary>
, this is the minimum required config:
options.IncludeXmlComments(xmlFilePath);
options.AddEnumsWithValuesFixFilters(services, x => {
x.IncludeDescriptions = true;
x.DescriptionSource = DescriptionSources.XmlComments;
x.IncludeXmlCommentsFrom(xmlFilePath);
});
The IncludeXmlCommentsWithRemarks
still throws, but now I understand that it is part of swashbuckle, not this library.
Thanks!
I want enum descriptions from
<summary>
xml comments (not[Description]
).So I did this:
That works! (However it shows both
<summary>
AND<remarks>
.)But if I use this instead:
Then it throws:
So:
IncludeXmlComments
also shows remarksoptions.IncludeXmlComments(xmlFilePath)
, but it works even without thatIncludeXmlCommentsWithRemarks
throws