Skip to content

Commit 48a809e

Browse files
authored
check Extensions object for null
using Microsoft.OpenApi.OData package it generates OpenApi document with OpenApiComponents.Extensions == null
1 parent 1a7392f commit 48a809e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Services/OpenApiWalker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ internal void Walk(IOpenApiExtensible openApiExtensible)
274274

275275
_visitor.Visit(openApiExtensible);
276276

277-
if (openApiExtensible != null)
277+
if (openApiExtensible.Extensions != null)
278278
{
279279
foreach (var item in openApiExtensible.Extensions)
280280
{

0 commit comments

Comments
 (0)