Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Have you figured out how to add XML comments to OpenAPI output? #3

Open
Allann opened this issue Dec 18, 2021 · 2 comments
Open

Comments

@Allann
Copy link

Allann commented Dec 18, 2021

I am struggling to find any examples of how to inject descriptions for the endpoint and parameters. This use to be easy because xml comments on classes and properties could be added via swagger.

  • methods (e.g. app.MapPost(... cant have xml comments
  • xml comments on classes used as request/response objects are ignored including the public properties

Any help would be appreciated.

@AnthonyGiretti
Copy link
Owner

AnthonyGiretti commented Dec 18, 2021 via email

@AnthonyGiretti
Copy link
Owner

Hi,

I have found the answer. This is simply not supported for now. @davidfowl himself precise it here: https://stackoverflow.com/questions/69790435/swagger-asp-net-core-minimal-api-include-xml-comments-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants