Skip to content

Commit

Permalink
Attempt to fix issue 2530 (#4140)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpbeukes authored Sep 16, 2022
1 parent e6b7370 commit 1981c54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ protected override string ResolveParameterType(OpenApiParameter parameter)
}
}

if (schema.Type == JsonObjectType.Array && schema.Item.IsBinary)
if (schema.Type == JsonObjectType.Array && (schema.Item?.IsBinary ?? false))
{
return "System.Collections.Generic.IEnumerable<FileParameter>";
}
Expand Down

0 comments on commit 1981c54

Please sign in to comment.