Skip to content

Commit

Permalink
Reword comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaya committed Jan 13, 2025
1 parent d93841d commit 54dd7a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void Apply(OpenApiOperation operation, OperationFilterContext context)
if (operation.Responses.TryGetValue(responseMetadata.HttpCode.ToString(), out var existingResponse))
{
// If no content type is specified, three will be added by default: application/json, text/plain, and text/json.
// In this case we want to enforce the application/json content type.
// In this case we want to enforce the proper content type associated with the method's return type.
if (IsDefaultContentTypes(existingResponse.Content))
{
existingResponse.Content.Clear();
Expand Down

0 comments on commit 54dd7a8

Please sign in to comment.