Skip to content

Commit c53f885

Browse files
authored
Updated the http Swashbuckle mapping to reflect the real description (#78)
1 parent 1fb3706 commit c53f885

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Shared/HttpResultsStatusCodeTypeHelpers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ internal static class HttpResultsStatusCodeTypeHelpers
3232
{ "Workleap.Extensions.OpenAPI.TypedResult.InternalServerError`1", 500 },
3333
};
3434

35-
// Using the same descriptions from the Swashbuckle library: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/master/src/Swashbuckle.AspNetCore.SwaggerGen/SwaggerGenerator/SwaggerGenerator.cs
35+
// Using the same descriptions from the Swashbuckle library: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/fca056a330a8ddb5173eaa6ad912b77fd0cf0b39/src/Swashbuckle.AspNetCore.SwaggerGen/SwaggerGenerator/SwaggerGenerator.cs#L1027
3636
public static Dictionary<int, string> StatusCodesToDescription { get; } = new()
3737
{
3838
{ 200, "OK"},
3939
{ 201, "Created" },
40-
{ 202, "OK" },
41-
{ 204, "Accepted" },
40+
{ 202, "Accepted" },
41+
{ 204, "No Content" },
4242
{ 400, "Bad Request" },
4343
{ 401, "Unauthorized" },
4444
{ 403, "Forbidden" },

0 commit comments

Comments
 (0)