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 0b63d77 commit 91f83f8Copy full SHA for 91f83f8
src/Microsoft.OpenApi/Models/OpenApiMediaType.cs
@@ -99,7 +99,7 @@ public void SerializeAsV2(IOpenApiWriter writer)
99
private void SerializeExamples(IOpenApiWriter writer, IDictionary<string, OpenApiExample> examples)
100
{
101
/* 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
+ * Check if there is any example with an empty array as its value and set the flag `hasEmptyArray` to true
103
* */
104
var hasEmptyArray = examples.Values.Any(example =>
105
example.Value is OpenApiArray arr && arr.Count == 0
0 commit comments