Skip to content

Commit f942764

Browse files
Update src/Microsoft.OpenApi/Reader/V2/OpenApiPathItemDeserializer.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent 0aea73f commit f942764

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Microsoft.OpenApi/Reader/V2/OpenApiPathItemDeserializer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ private static void LoadPathParameters(OpenApiPathItem pathItem, ParseNode node,
5555
node.Context.SetTempStorage(TempStorageKeys.FormParameters, null);
5656

5757
pathItem.Parameters = node.CreateList(LoadParameter, hostDocument)
58-
.Where(p => p != null)
59-
.Cast<IOpenApiParameter>()
58+
.OfType<IOpenApiParameter>()
6059
.ToList();
6160

6261
// Build request body based on information determined while parsing OpenApiOperation

0 commit comments

Comments
 (0)