diff options
Diffstat (limited to 'code/api/src/Utilities/SwaggerDefaultValues.cs')
| -rw-r--r-- | code/api/src/Utilities/SwaggerDefaultValues.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |
