Skip to content

Commit 38ba98e

Browse files
Update src/Microsoft.OpenApi/Models/OpenApiMediaType.cs
Co-authored-by: Andrew Omondi <[email protected]>
1 parent 28142d5 commit 38ba98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiMediaType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private void SerializeExamples(IOpenApiWriter writer, IDictionary<string, OpenAp
101101
/* Special case for writing out empty arrays as valid response examples
102102
* Check if there is any example with an empty array as its value and set the flag `hasEmptyArray` to true
103103
* */
104-
var hasEmptyArray = examples.Values.Any(example =>
104+
var hasEmptyArray = examples.Values.Any( static example =>
105105
example.Value is OpenApiArray arr && arr.Count == 0
106106
);
107107

0 commit comments

Comments
 (0)