Skip to content

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

Open
@lonix1

Description

@lonix1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions