Skip to content

Commit db1996f

Browse files
committed
Handle case with empty schemes array - attempt 2
1 parent a5b8b8c commit db1996f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.Readers/V2/OpenApiDocumentDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private static void MakeServers(IList<OpenApiServer> servers, ParsingContext con
145145
}
146146

147147
// Create the Server objects
148-
if (schemes != null || schemes.Count > 0)
148+
if (schemes != null && schemes.Count > 0)
149149
{
150150
foreach (var scheme in schemes)
151151
{

0 commit comments

Comments
 (0)