-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-openapi
Description
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
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-openapi