Skip to content

Commit f2c4e1f

Browse files
authored
fix: Change dot in OperationIds to underscore (#193)
1 parent 60831a0 commit f2c4e1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ services.AddSwaggerGen(c => {
125125
[SwaggerOperation(
126126
Summary = "Creates a new Author",
127127
Description = "Creates a new Author",
128-
OperationId = "Author.Create",
128+
OperationId = "Author_Create",
129129
Tags = new[] { "AuthorEndpoint" })
130130
]
131131
public override async Task<ActionResult<CreateAuthorResult>> HandleAsync([FromBody]CreateAuthorCommand request)
@@ -159,7 +159,7 @@ public class List : BaseAsyncEndpoint
159159
[SwaggerOperation(
160160
Summary = "List all Authors",
161161
Description = "List all Authors",
162-
OperationId = "Author.List",
162+
OperationId = "Author_List",
163163
Tags = new[] { "AuthorEndpoint" })
164164
]
165165
public override async Task<ActionResult<IList<AuthorListResult>>> HandleAsync(
@@ -237,7 +237,7 @@ public class Post : BaseAsyncEndpoint
237237
[SwaggerOperation(
238238
Summary = "Submit a new article",
239239
Description = "Enables the submission of new articles",
240-
OperationId = "B349A6C4-1198-4B53-B9BE-85232E06F16E",
240+
OperationId = "Article_Create",
241241
Tags = new[] {"Article"})
242242
]
243243
public override Task<ActionResult> HandleAsync([FromRoute] NewArticleRequest request,

sample/Sample.WeatherForecast/Endpoints/Get.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Get(ILogger<Get> logger)
2323
[HttpGet("/WeatherForecast")]
2424
[SwaggerOperation(
2525
Summary = "Get weather forecast",
26-
OperationId = "WeatherForecast.Get",
26+
OperationId = "WeatherForecast_Get",
2727
Tags = new[] { "WeatherForecast" })
2828
]
2929
public override ActionResult<IEnumerable<WeatherForecast>> Handle()

0 commit comments

Comments
 (0)