Skip to content

Mvc.Api.Analyzers not recognizing methods from a Base Class #4410

Open
@prmces

Description

@prmces

My app use a Base Controller to reuse some methods inside my Api controllers.
image

The MVC.API.Analyzer library is looking at my controllers that inherit from this base controller, trying to found undocumented reponse codes. That is correct.

But, inside my Base Controller, I have undocument methods. The swagger UI shows me correctly all the inherited methods, but the analyzers could not point me that I am missing something.

The Controller that inherits from BaseController and its swagger doc. Correct.
image

image

The Base Controller. Wrong. (Im missing documentation for NotFound and BadRequest)
image

Any help on that??

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:3Work that is nice to haveaffected-very-fewThis issue impacts very few customersanalyzerIndicates an issue which is related to analyzer experiencearea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-openapiseverity-majorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions