We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32a5ec5 commit e09fb38Copy full SHA for e09fb38
src/Microsoft.OpenApi/Models/OpenApiOperation.cs
@@ -278,12 +278,7 @@ public void SerializeAsV2(IOpenApiWriter writer)
278
var produces = Responses
279
.Where(static r => r.Value.Content != null)
280
.SelectMany(static r => r.Value.Content?.Keys ?? [])
281
- .Concat(
282
- Responses
283
- .Select(static r => r.Value)
284
- .OfType<OpenApiResponseReference>()
285
- .Where(static r => r.Reference is {HostDocument: not null})
286
- .SelectMany(static r => r.Content?.Keys ?? []))
+ .Where(static m => !string.IsNullOrEmpty(m))
287
.Distinct(StringComparer.OrdinalIgnoreCase)
288
.ToArray();
289
0 commit comments