From 0005595703b2f3f7083ce4ba19bf5770057c75bd Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 25 Oct 2022 17:51:37 +0800 Subject: . --- code/api/src/Utilities/SwaggerDefaultValues.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/api/src/Utilities/SwaggerDefaultValues.cs') diff --git a/code/api/src/Utilities/SwaggerDefaultValues.cs b/code/api/src/Utilities/SwaggerDefaultValues.cs index 4b5c764..5e73fa8 100644 --- a/code/api/src/Utilities/SwaggerDefaultValues.cs +++ b/code/api/src/Utilities/SwaggerDefaultValues.cs @@ -27,7 +27,7 @@ public class SwaggerDefaultValues : IOperationFilter var response = operation.Responses[responseKey]; foreach (var contentType in response.Content.Keys) { - if (!responseType.ApiResponseFormats.Any(x => x.MediaType == contentType)) { + if (responseType.ApiResponseFormats.All(x => x.MediaType != contentType)) { response.Content.Remove(contentType); } } -- cgit v1.3