Skip to content

Commit 257107c

Browse files
committed
Address PR feedback
1 parent a409b31 commit 257107c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiParameter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4+
using System;
45
using System.Collections.Generic;
56
using System.Runtime;
67
using Microsoft.OpenApi.Any;
@@ -377,7 +378,7 @@ public void SerializeAsV2WithoutReference(IOpenApiWriter writer)
377378
// allowEmptyValue
378379
writer.WriteProperty(OpenApiConstants.AllowEmptyValue, AllowEmptyValue, false);
379380

380-
if (this.In == ParameterLocation.Query && Schema?.Type == "array")
381+
if (this.In == ParameterLocation.Query && "array".Equals(Schema?.Type, StringComparison.OrdinalIgnoreCase))
381382
{
382383
if (this.Style == ParameterStyle.Form && this.Explode == true)
383384
{

0 commit comments

Comments
 (0)