Skip to content

Commit 91f83f8

Browse files
committed
Update comment
1 parent 0b63d77 commit 91f83f8

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
@@ -99,7 +99,7 @@ public void SerializeAsV2(IOpenApiWriter writer)
9999
private void SerializeExamples(IOpenApiWriter writer, IDictionary<string, OpenApiExample> examples)
100100
{
101101
/* Special case for writing out empty arrays as valid response examples
102-
* Check if there is any example with an empty array as its value
102+
* Check if there is any example with an empty array as its value and set the flag `hasEmptyArray` to true
103103
* */
104104
var hasEmptyArray = examples.Values.Any(example =>
105105
example.Value is OpenApiArray arr && arr.Count == 0

0 commit comments

Comments
 (0)