Skip to content

Commit

Permalink
fix: Change dot in OperationIds to underscore (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesigs authored Jun 1, 2023
1 parent 60831a0 commit f2c4e1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<ActionResult<CreateAuthorResult>> HandleAsync([FromBody]CreateAuthorCommand request)
Expand Down Expand Up @@ -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<ActionResult<IList<AuthorListResult>>> HandleAsync(
Expand Down Expand Up @@ -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<ActionResult> HandleAsync([FromRoute] NewArticleRequest request,
Expand Down
2 changes: 1 addition & 1 deletion sample/Sample.WeatherForecast/Endpoints/Get.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public Get(ILogger<Get> logger)
[HttpGet("/WeatherForecast")]
[SwaggerOperation(
Summary = "Get weather forecast",
OperationId = "WeatherForecast.Get",
OperationId = "WeatherForecast_Get",
Tags = new[] { "WeatherForecast" })
]
public override ActionResult<IEnumerable<WeatherForecast>> Handle()
Expand Down

0 comments on commit f2c4e1f

Please sign in to comment.