Skip to content

Commit 8d28c5a

Browse files
darrelmillerbaywet
andauthored
Update src/Microsoft.OpenApi.Readers/V2/OpenApiPathItemDeserializer.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent bbb6ae0 commit 8d28c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private static void LoadPathParameters(OpenApiPathItem pathItem, ParseNode node)
6767
if (bodyParameter != null)
6868
{
6969
var requestBody = CreateRequestBody(node.Context, bodyParameter);
70-
foreach(var opPair in pathItem.Operations)
70+
foreach(var opPair in pathItem.Operations.Where(x => x.Value.RequestBody is null))
7171
{
7272
switch (opPair.Key)
7373
{

0 commit comments

Comments
 (0)