Skip to content

Commit

Permalink
Update src/Microsoft.OpenApi/Models/OpenApiMediaType.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Omondi <andrueastman@users.noreply.github.com>
  • Loading branch information
MaggieKimani1 and andrueastman authored Aug 5, 2024
1 parent 38ba98e commit 1c19986
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 @@ -109,7 +109,7 @@ private void SerializeExamples(IOpenApiWriter writer, IDictionary<string, OpenAp
{
writer.WritePropertyName(OpenApiConstants.Examples);
writer.WriteStartObject();
foreach (var kvp in examples.Where(kvp => kvp.Value.Value is OpenApiArray arr && arr.Count == 0))
foreach (var kvp in examples.Where(static kvp => kvp.Value.Value is OpenApiArray arr && arr.Count == 0))
{
writer.WritePropertyName(kvp.Key);
writer.WriteStartObject();
Expand Down

0 comments on commit 1c19986

Please sign in to comment.