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 a409b31 commit 257107cCopy full SHA for 257107c
src/Microsoft.OpenApi/Models/OpenApiParameter.cs
@@ -1,6 +1,7 @@
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the MIT license.
3
4
+using System;
5
using System.Collections.Generic;
6
using System.Runtime;
7
using Microsoft.OpenApi.Any;
@@ -377,7 +378,7 @@ public void SerializeAsV2WithoutReference(IOpenApiWriter writer)
377
378
// allowEmptyValue
379
writer.WriteProperty(OpenApiConstants.AllowEmptyValue, AllowEmptyValue, false);
380
- if (this.In == ParameterLocation.Query && Schema?.Type == "array")
381
+ if (this.In == ParameterLocation.Query && "array".Equals(Schema?.Type, StringComparison.OrdinalIgnoreCase))
382
{
383
if (this.Style == ParameterStyle.Form && this.Explode == true)
384
0 commit comments