We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d93841d commit 54dd7a8Copy full SHA for 54dd7a8
src/Workleap.Extensions.OpenAPI/TypedResult/ExtractSchemaTypeResultFilter.cs
@@ -26,7 +26,7 @@ public void Apply(OpenApiOperation operation, OperationFilterContext context)
26
if (operation.Responses.TryGetValue(responseMetadata.HttpCode.ToString(), out var existingResponse))
27
{
28
// If no content type is specified, three will be added by default: application/json, text/plain, and text/json.
29
- // 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.
30
if (IsDefaultContentTypes(existingResponse.Content))
31
32
existingResponse.Content.Clear();
0 commit comments