Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add descriptions for more HTTP status codes #2872

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update description
  • Loading branch information
cremor committed May 13, 2024
commit 6b8456fbe1308eae4b31aa503b980a459983ca29
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ private static bool IsFromFormAttributeUsedWithIFormFile(ApiParameterDescription
new KeyValuePair<string, string>("416", "Range Not Satisfiable"),
new KeyValuePair<string, string>("417", "Expectation Failed"),
new KeyValuePair<string, string>("421", "Misdirected Request"),
new KeyValuePair<string, string>("422", "Unprocessable Entity"),
new KeyValuePair<string, string>("422", "Unprocessable Content"),
new KeyValuePair<string, string>("423", "Locked"),
new KeyValuePair<string, string>("424", "Failed Dependency"),
new KeyValuePair<string, string>("426", "Upgrade Required"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ public void GetSwagger_GeneratesResponses_ForSupportedResponseTypes()
Assert.Equal("Bad Request", response400.Description);
Assert.Empty(response400.Content.Keys);
var response422 = operation.Responses["422"];
Assert.Equal("Unprocessable Entity", response422.Description);
Assert.Equal("Unprocessable Content", response422.Description);
Assert.Empty(response422.Content.Keys);
var responseDefault = operation.Responses["default"];
Assert.Equal("Error", responseDefault.Description);
Expand Down
Loading