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

[Feature Request] Analyser to support swagger response in xml comments #94

Open
lonix1 opened this issue Feb 21, 2022 · 0 comments
Open

Comments

@lonix1
Copy link

lonix1 commented Feb 21, 2022

Swashbuckle currently recommends to use xml comments instead of attributes:

Before

[ProducesResponseType(200)]             // either ASP.NET Core built-in
[SwaggerResponse(200)]                  // or Swashbuckle

After

/// <response code="200">Success.</response>

Problem is the API1000 doesn't recognise the xml comments, and complains:

Action method returns undeclared status code '200'

It would be nice to have an analyser for this in this library, if possible?

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

1 participant