Closed piaste closed 6 years ago
Did you add the required packages?
https://github.com/RSuter/NJsonSchema/wiki/XML-Documentation#net-core
Yes, my original project had them both in the output, and I've confirmed they appear in the repro as well. No difference.
Yes, but i cannot see the .xml doc files in this listing?
It's in there:
nswagscratch.xml
The content of that file is what I posted in the first post.
(Besides, if it couldn't find the file, NSwag wouldn't show any comment text.)
ATM nswag searches for xml docs with the same name as the assembly but with .xml extension
Just saw that your xml summary shows up in the screenshot!? Where’s the problem?
Ah i see: The xml param tag must not be placed into the summary tag but i think below...
Minimal repro: https://github.com/piaste/nswagscratch
Given the following method:
which creates the following XML doc file:
the XML comment for the
id
parameter shows up in IntelliSense, but the NSwag generator dumps it in the general endpoint description: