Use generic ProducesResponseTypeAttribute instead of typeof(...) (#3074)

This commit is contained in:
Sebastian Göls
2023-11-16 21:49:15 +01:00
committed by GitHub
parent 5cbe11241c
commit 193f0e3c08
14 changed files with 82 additions and 82 deletions

View File

@@ -29,7 +29,7 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper;
[Route("Api/SteamTokenDumperPlugin")]
public sealed class SteamTokenDumperController : ArchiController {
[HttpGet(nameof(GlobalConfigExtension))]
[ProducesResponseType(typeof(GlobalConfigExtension), (int) HttpStatusCode.OK)]
[ProducesResponseType<GlobalConfigExtension>((int) HttpStatusCode.OK)]
[SwaggerOperation(Tags = new[] { nameof(GlobalConfigExtension) })]
public ActionResult<GlobalConfigExtension> Get() => Ok(new GlobalConfigExtension());
}