Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieKimani1 committed Aug 2, 2024
1 parent 0b63d77 commit 91f83f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Models/OpenApiMediaType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void SerializeAsV2(IOpenApiWriter writer)
private void SerializeExamples(IOpenApiWriter writer, IDictionary<string, OpenApiExample> examples)
{
/* Special case for writing out empty arrays as valid response examples
* Check if there is any example with an empty array as its value
* Check if there is any example with an empty array as its value and set the flag `hasEmptyArray` to true
* */
var hasEmptyArray = examples.Values.Any(example =>
example.Value is OpenApiArray arr && arr.Count == 0
Expand Down

0 comments on commit 91f83f8

Please sign in to comment.