Skip to content

Controller Obsolete is not showing in openapi json #61672

@Indoraptor1

Description

@Indoraptor1

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Im trying to mark my controller as Obsolete, but it is not visible in the openapi json.

        [HttpGet("teszt")]
        [EndpointDescription("Test Enpoint")]
        [Obsolete("Nem támogatott!")]
        public IActionResult GetTeszt()
        {
            return Ok("teszt");
        }
"/api/v{version}/servers/teszt": {
      "get": {
        "tags": [
          "Server"
        ],
        "description": "Test Enpoint",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }

Is there any built in way to mark endpoint as deprecated?

Describe the solution you'd like

deprecated: true is missing

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-openapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions