From f2c4e1f70c044adda1d4e47df5cab2378e85df76 Mon Sep 17 00:00:00 2001 From: Mike Sigsworth Date: Thu, 1 Jun 2023 07:22:15 -0600 Subject: [PATCH] fix: Change dot in OperationIds to underscore (#193) --- README.md | 6 +++--- sample/Sample.WeatherForecast/Endpoints/Get.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fdeafed..d790f60 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ services.AddSwaggerGen(c => { [SwaggerOperation( Summary = "Creates a new Author", Description = "Creates a new Author", - OperationId = "Author.Create", + OperationId = "Author_Create", Tags = new[] { "AuthorEndpoint" }) ] public override async Task> HandleAsync([FromBody]CreateAuthorCommand request) @@ -159,7 +159,7 @@ public class List : BaseAsyncEndpoint [SwaggerOperation( Summary = "List all Authors", Description = "List all Authors", - OperationId = "Author.List", + OperationId = "Author_List", Tags = new[] { "AuthorEndpoint" }) ] public override async Task>> HandleAsync( @@ -237,7 +237,7 @@ public class Post : BaseAsyncEndpoint [SwaggerOperation( Summary = "Submit a new article", Description = "Enables the submission of new articles", - OperationId = "B349A6C4-1198-4B53-B9BE-85232E06F16E", + OperationId = "Article_Create", Tags = new[] {"Article"}) ] public override Task HandleAsync([FromRoute] NewArticleRequest request, diff --git a/sample/Sample.WeatherForecast/Endpoints/Get.cs b/sample/Sample.WeatherForecast/Endpoints/Get.cs index cada7e0..db1c834 100644 --- a/sample/Sample.WeatherForecast/Endpoints/Get.cs +++ b/sample/Sample.WeatherForecast/Endpoints/Get.cs @@ -23,7 +23,7 @@ public Get(ILogger logger) [HttpGet("/WeatherForecast")] [SwaggerOperation( Summary = "Get weather forecast", - OperationId = "WeatherForecast.Get", + OperationId = "WeatherForecast_Get", Tags = new[] { "WeatherForecast" }) ] public override ActionResult> Handle()